httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Levchenko" <>
Subject [users@httpd] DocumentRoot
Date Fri, 16 Jun 2006 18:24:51 GMT
Hello all,

I just installed appache 2.2.2 on FreeBSD 6.1 by going into
/usr/ports/www/apache22/ and doing make install clean. Everything
works ok. I see my pages in the browser. By default, it loads pages
from /usr/local/www/data, but I want to change it to pub. I rename
data to pub, then in httpd.conf I edit DocumentRoot so that is shows:

DocumentRoot "/usr/local/www/apache22/pub"

and then a bit further on in the file:

<Directory "/usr/local/www/apache22/pub">

I then save the file and restart apache. I get this error:
Performing sanity check on apache22 configuration:
Syntax error on line 149 of /usr/local/etc/apache22/httpd.conf:
DocumentRoot must be a directory

The had the following enabled in
/usr/local/etc/apache22/extra/httpd-vhosts.conf , even after I
commented it out, it still didn't work:

#<VirtualHost *:80>
#    ServerAdmin
#    DocumentRoot /www/docs/
#    ServerName
#    ServerAlias
#    ErrorLog /var/log/
#    CustomLog /var/log/ common

#<VirtualHost *:80>
#    ServerAdmin
#    DocumentRoot /www/docs/
#    ServerName
#    ErrorLog /var/log/
#    CustomLog /var/log/ common

I googled on this issue and couldn't find anything that helped.

What can i do to get it working? If I change everything back to data, it works.



The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message