httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joost de Heer <>
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
>      DocumentRoot /var/www/html/
>      ServerName
>      ServerAlias
> </VirtualHost>

> When I use Firefox via http://localhost/ , 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 


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