httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J. Greenlees" <li...@jaqui-greenlees.net>
Subject Re: [users@httpd] DocumentRoot Directive
Date Tue, 14 Jul 2009 17:20:03 GMT
howard chen wrote:
> In the document: http://httpd.apache.org/docs/2.0/mod/core.html#documentroot
> 
> It said
>  >> The DocumentRoot should be specified without a trailing slash.
> 
> However, even I end with a trailing slash, it is ok.
> Any other  impact? (as the document only told you not to, without reason)
> 
> Thanks.
> 

Yup, the server puts the trailing slash on the url when it responds to
the browser request.
If you put the trailing slash on the document root, then the server
REQUIRES it.
this makes http://example.com fail to resolve, the typed url would need
to be http://example.com/

Jaqui


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