httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trli...@clayst.com
Subject Re: [users@httpd] Multiple URLs / One Site
Date Tue, 27 Apr 2004 19:24:59 GMT
On 27 Apr 2004 Joshua Slive wrote:

> Because then all relative URL references would be wrong.  If you access
> "/dir", and then click on a realtive link for "file", your browser will
> take you to "/file".  If, on the other hand, you had accessed "/dir/",
> your browser would have taken you to "/dir/file".  This this resolution is
> handled by the browser, not the server, the server must inform the browser
> of the true URL with the trailing slash included.

Ah, OK, I see.  Thanks.

> To do it with a real browser, yes you'd need to change DNS.  But you don't
> need to use a real browser.  You can simply telnet to your server's IP on
> port 80 and then specify whatever you want in the Host: header, as in
> 
> telnet yourhost.example.com 80
> GET / HTTP/1.1
> Host: whatever.I.want

After I responded I was doing some reading, I think in the PHP docs, 
that made me wonder if faking the Host: header was the mechanism.  
Thanks for the explanation.

--
Tom




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