Hi,

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?

Sincerely,


Karsten Jeppesen

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

Reply via email to