Why did my DocumentRoot change?

Posted by Josh K on Server Fault See other posts from Server Fault or by Josh K
Published on 2010-05-01T04:17:23Z Indexed on 2010/05/01 4:28 UTC
Read the original article Hit count: 378

Filed under:
|
|
|

My document root (suddenly and unexpectedly) changed to /htdocs from /var/www. This happened after I restarted apache2.

The only thing I changed was the httpd.conf file which now reads as follows:

<VirtualHost *>
    ServerName hostname
    UseCanonicalName ON
</VirtualHost>

I've greped through the entire /etc directory looking for DocumentRoot and they all say /var/www.

© Server Fault or respective owner

Related posts about documentroot

Related posts about apache