On 23/05/13 19:38, Ralph Corderoy wrote:
Hi Tim,

I am trying to access a web site via a different IP address than the
normal web site sits on.
You could pass an explicit Host header just to check the server is
configured as you expect.  As an example, try

     curl -sSvIH 'Host: dorset.lug.org.uk' http://google.com/

Cheers, Ralph.

Hi Ralph

I assume you wanted me to replace google.com with the web site I am trying to access, this is what I got (apologies for hiding the details)


curl -sSvIH 'Host: dorset.lug.org.uk' http://website.co.uk
* About to connect() to website.co.uk port 80 (#0)
*   Trying 1.1.1.1...
* Connected to website.co.uk (1.1.1.1) port 80 (#0)
> HEAD / HTTP/1.1
> User-Agent: curl/7.29.0
> Accept: */*
> Host: dorset.lug.org.uk
>
< HTTP/1.1 307 Temporary Redirect
HTTP/1.1 307 Temporary Redirect
< X-IPC-BALANCEID: 02:80
X-IPC-BALANCEID: 02:80
< Server: Apache
Server: Apache
< Vary: Accept-Encoding
Vary: Accept-Encoding
< Content-Type: text/html; charset=iso-8859-1
Content-Type: text/html; charset=iso-8859-1
< Date: Thu, 23 May 2013 18:52:16 GMT
Date: Thu, 23 May 2013 18:52:16 GMT
< Location: http://www.*******.com/
Location: http://www.*******.com/
< Transfer-Encoding: chunked
Transfer-Encoding: chunked
< Connection: Keep-Alive
Connection: Keep-Alive
< X-Cache-Info: not cacheable; response code not cacheable
X-Cache-Info: not cacheable; response code not cacheable

<
* Connection #0 to host website.co.uk left intact

So I take it it is reading my host file and redirecting the browser to the IP address I entered. What are the redirect at line 10 & 11??

Tim


--
Next meeting:  Bournemouth, Tuesday, 2013-06-04 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread on mailing list:  mailto:[email protected]
How to Report Bugs Effectively:  http://goo.gl/4Xue

Reply via email to