Re: DocumentRoot Directive

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

 



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