Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
I have my web app projects located in a folder in /media/disk1/Projects. I want to serve them using an Apache virtualhost at http://lab/
.
This is how I set up my virtual host:
1. Copied /etc/apache2/sites-available/default to /etc/apache2/sites-available/lab
2. Edited /etc/apache2/sites-available/lab to the following:
<VirtualHost *:80>
ServerAdmin tim@localhost
ServerName lab
DocumentRoot /media/disk1/Projects
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
# <Directory /var/www/>
<Directory /media/disk1/Projects>
Require all granted
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
3. Added 127.0.0.1 lab
to my /etc/hosts:
127.0.0.1 localhost
127.0.0.1 lab
4. Accessed http://lab
only to get 500 Internal Server Error
All the subfolder permissions are set to drwxrwxrwx
But my http://lab/phpmyadmin
works.
Help me resolve. Thanks.