Re: DocumentRoot isn't the root for an absolute reference.

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

 



# Below are all the real virtual host definitions.
<VirtualHost *:80>
     ServerAdmin xxx@xxxxxxx
     DocumentRoot /var/www/html/roatanbakery.com
     ServerName roatanbakery.com
     ServerAlias www.roatanbakery.com
</VirtualHost>

When I use Firefox via http://localhost/roatanbakery.com/ , the page
comes up broken with no css and no ssi's working.

localhost isn't in the ServerName/-Alias, so the first (default) host is used, and the documentroot for that host is /var/www/html. A reference to /common/style.css will result in a request for the file /var/www/html/common/style.css.

Joost

---------------------------------------------------------------------
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