[users@httpd] DocumentRoot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 webmaster@xxxxxxxxxxxxxxxxxxxxxx
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ServerAlias www.dummy-host.example.com
#    ErrorLog /var/log/dummy-host.example.com-error_log
#    CustomLog /var/log/dummy-host.example.com-access_log common
#</VirtualHost>

#<VirtualHost *:80>
#    ServerAdmin webmaster@xxxxxxxxxxxxxxxxxxxxxxx
#    DocumentRoot /www/docs/dummy-host2.example.com
#    ServerName dummy-host2.example.com
#    ErrorLog /var/log/dummy-host2.example.com-error_log
#    CustomLog /var/log/dummy-host2.example.com-access_log common
#</VirtualHost>

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.

WBR,

Ivan

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux