httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joost de Heer <jo...@sanguis.xs4all.nl>
Subject Re: [users@httpd] DocumentRoot isn't the root for an absolute reference.
Date Thu, 16 Dec 2010 20:52:55 GMT
> # Below are all the real virtual host definitions.
> <VirtualHost *:80>
>      ServerAdmin xxx@ycc.com
>      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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message