Apache virtualhost - Mac OSX 10.7.3
- by Rakan
After upgrading to Lion, all my virtualhosts stopped working. They redirect to "It works" main apache page on my device for some weird reason.
Example:
/etc/hosts:
127.0.0.1 myhost.com
<VirtualHost *:80>
DocumentRoot "/Library/WebServer/Documents/testproj/"
ServerName myhost.com
<Directory "/Library/WebServer/Documents/testproj/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
ErrorLog "/private/var/log/apache2/testproj-error_log"
CustomLog "/private/var/log/apache2/testproj-access_log" common
</VirtualHost>
Did anyone else face the same issue? How can I fix this?