[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] [Slightly OT] GET command for virtual hosts?
- Subject: Re: [cobalt-users] [Slightly OT] GET command for virtual hosts?
- From: "Graeme Fowler" <graeme.f@xxxxxxxxxxxxxxx>
- Date: Wed Oct 25 07:10:01 2000
- Organization: WebFusion Internet Solutions
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Dom wrote:
> and www.punter.co.uk is actually hosted by www.provider.com,
> then I get the index page for provider.com, not punter.co.uk.
You have to use HTTP/1.1 syntax instead - this is a virtual host. If you
ask for 'GET / HTTP/1.0' then the server will assume you are asking for
the default visrtual host, which, in most cases is the providers' page.
What you need to do is:
telnet www.punter.co.uk 80
<connect>
GET / HTTP/1.1
Host: www.punter.co.uk
<return>
[Page output for www.punter.co.uk]
HTH
Graeme