Hello all, I'm struggling to understand how and why Cherokee's Reverse Proxy handler is responding the way that it is. What I want is simply done in Apache, and I so far I've been extremely happy with my move to Cherokee several months ago, until I ran into this issue.
I have an external site that I want to reverse proxy onto my site running Cherokee. Here are the particulars: My website: www.lbbrf.com/kb/ Site to proxy: lbbrf.griefwatch.net 1) In Cherokee I setup a new information source as an external site with the address being "lbbrf.griefwatch.net" 2) In my vhost I created a directory with a Reverse Proxy handler 2a) The only option enabled is use keep-alives 2b) The information source is set to my configured information source When I attempt to access this reverse proxy I get redirected to the main page (not even my page) of the site I'm attempting to proxy. Here is the header information: vitrauze:~ [5] ghent$ telnet www.lbbrf.com 80 Trying 212.117.172.75... Connected to lbbrf.com. Escape character is '^]'. GET /kb/ HTTP/1.1 Host: www.lbbrf.com HTTP/1.1 302 Moved Temporarily Date: Mon, 07 Mar 2011 02:57:05 GMT Server: Cherokee/1.2.1 (Gentoo Linux) Location: http://static.griefwatch.net/404.php Vary: Accept-Encoding Content-Length: 220 Content-Type: text/html; charset=iso-8859-1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>302 Found</title> </head><body> <h1>Found</h1> <p>The document has moved <a href="http://static.griefwatch.net/404.php">here</a>.</p> </body></html> Connection closed by foreign host. Here is my minimally configured Apache: <VirtualHost *:4567> ServerName lbbrf-gw ProxyPass / http://lbbrf.griefwatch.net/ ProxyPassReverse / http://lbbrf.griefwatch.net/ <Directory "/"> Options All AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost> And I get this when I try to access the proxy: chi-mac-0004:~ [6] ryan.mclean$ telnet www.lbbrf.com 4567 Trying 212.117.172.75... Connected to lbbrf.com. Escape character is '^]'. GET / HTTP/1.1 Host: www.lbbrf.com HTTP/1.1 200 OK Date: Mon, 07 Mar 2011 03:02:20 GMT Server: Apache/2.2.15 (Win32) PHP/5.2.17 X-Powered-By: PHP/5.2.17 Vary: Accept-Encoding Content-Type: text/html Transfer-Encoding: chunked a4b <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> ----------- SNIP ------------ In short, the reverse proxy works flawlessly. As a further test, I set my information source to use my local Apache reverse proxy and it ended up having the same exact result as above! So I am very confused on what is happening with Cherokee that it can't proxy this properly. It seems to me that it might have something to do with the information source. Does putting in an external information source with a hostname properly identify itself with a remote host (since it probably uses named vhosts as well) or does it just make a socket connection to the resolved IP address? I really want to stay with Cherokee and I am having an extremely difficult time figuring this out. I implore anyone to help me. Thank you :) .: Ghent _______________________________________________ Cherokee mailing list [email protected] http://lists.octality.com/listinfo/cherokee
