After upgrading to Yosemite, my Apache configuration seems broken. My main problem is that the Document Root is changed. Now all I get is a "It works!" page.
I can't figure out why, everything looks fine to me.
I have set up properly /etc/apache2/httpd.conf
and DocumentRoot is in fact /Library/WebServer/Documents
as it was before... Also /private/etc/apache2/httpd.conf
contains the same... Moreover, the additional configuration to have a directory for the user (e.g. localhost/~user1
) is not loaded.
I don't know what to do.
Can somebody help me please?
Thanks.
I had the same problem. Apparently the document root changed to /usr/local/var/apache2/htdocs . I found this by checking what config file was being loaded by apache.
You should see something like this
At the very end shows that is no longer loading the /private/etc/apache2/httpd.conf but instead is loading it from /usr/local/etc/apache2/httpd.conf
An easy workaround would be to move all your /Library/Webserver/Documents to the new DocumentRoot location /usr/local/etc/apache2/htdocs
Or just pass the old httpd.conf file to apachectl by doing