On 20/05/2010, at 21:32, Karsten Jeppesen wrote:

> I can't figure this one out, but I bet someone can.
> 
> From my PC at 192.168.0.10 I want to contact my cherokee server at 
> 192.168.0.22 and have it contact 192.168.0.21 but rewriting the HOST: 
> header so to activate a virtual named host on that .21 address.
> 
> I followed the network traffic and from 192.168.0.10 I see the following:
> 
> GET / HTTP/1.1
> Host: 192.168.0.22
> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.6) 
> Gecko/20091201 Firefox/3.5.6
> Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
> Accept-Language: en-us,en;q=0.5
> Accept-Encoding: gzip,deflate
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive: 300
> Connection: keep-alive
> Cookie: pmaCookieVer=4
> 
> 
> Thats all well and good.
> Now the 192.168.0.22 (cherokee-server) continues:
> GET / HTTP/1.1
> Host: 192.168.0.21
> Connection: Keep-Alive
> Keep-Alive: 300
> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.6) 
> Gecko/20091201 Firefox/3.5.6
> Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
> Accept-Language: en-us,en;q=0.5
> Accept-Encoding: gzip,deflate
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Cookie: pmaCookieVer=4; phpMyAdmin=0afh6XMl5SNfNxpgjzYThvZ5Zq3; 
> pma_fontsize=82%25
> If-Modified-Since: Sat, 12 Jan 2008 12:19:33 GMT
> Cache-Control: max-age=0
> X-Forwarded-For: 192.168.0.10
> X-Real-IP: 192.168.0.10
> X-Forwarded-Host: 192.168.0.22
> X-Forwarded-SSL: off
> 
> And thats not what I want. I want the Host: to read Host:www.xxx.com so 
> that the virtual server responds.
> How do I do that?


The 'HTTP Reverse Proxy' handler allows to set a 'Preserve Host Header' 
checkbox. By default it is turned off, so the Host header is replaced with the 
current virtual server hostname (its nickname).

I'm not 100% sure I understood you right. Is that want you needed?.. or 
instead, you'd like to modify the header to point to a third server?

--
Octality
http://www.octality.com/

_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to