Apache virtualhost - Mac OSX 10.7.3

Posted by Rakan on Server Fault See other posts from Server Fault or by Rakan
Published on 2012-04-01T15:41:16Z Indexed on 2012/04/01 17:32 UTC
Read the original article Hit count: 284

Filed under:
|
|

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?

© Server Fault or respective owner

Related posts about apache2

Related posts about macosx