httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From howard chen <howac...@gmail.com>
Subject Re: [users@httpd] DocumentRoot Directive
Date Wed, 15 Jul 2009 01:39:02 GMT
Hello,

On Wed, Jul 15, 2009 at 1:20 AM, J. Greenlees<lists@jaqui-greenlees.net> wrote:
>
> 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
>


Maybe I don't understand what you mean.

I have tested using ...

==========================
<VirtualHost *:80>

DocumentRoot /tmp/example/
ServerName www.example.com



</VirtualHost>

==========================

I can access to both http://example.com and http://example.com/

So I found no problem by using DocumentRoot /tmp/example/ (with the
ending slash)

Any adivce?

Thanks again.

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