All, I'm attempting to set up a proxy for a Tomcat application that runs on 8080.
To get to the application, you must go to http://server.whatever.com:8080/appname I would like to set Cherokee up so that I can go to http*S*://myserver.whatever.com and it'll then proxy everything in the backend. I keep half-getting this to work. Sometimes the page will come up, other times it won't. Here's what my configuration looks like: vserver!2!document_root = /var/www/docs vserver!2!match = wildcard vserver!2!match!domain!1 = *.whatever.com vserver!2!nick = ldap vserver!2!rule!103!handler = proxy vserver!2!rule!103!handler!balancer = round_robin vserver!2!rule!103!handler!balancer!source!1 = 1 vserver!2!rule!103!handler!in_allow_keepalive = 1 vserver!2!rule!103!handler!in_preserve_host = 0 vserver!2!rule!103!handler!out_preserve_server = 0 vserver!2!rule!103!handler!reuse_max = 5 vserver!2!rule!103!match = bind vserver!2!rule!103!match!bind!1 = 2 vserver!2!rule!103!match!bind!2 = 1 vserver!2!rule!103!only_secure = 1 vserver!2!rule!3!disabled = 1 vserver!2!rule!3!document_root = /usr/share/cherokee/themes vserver!2!rule!3!handler = file vserver!2!rule!3!match = directory vserver!2!rule!3!match!directory = /cherokee_themes vserver!2!rule!2!disabled = 1 vserver!2!rule!2!document_root = /usr/share/cherokee/icons vserver!2!rule!2!handler = file vserver!2!rule!2!match = directory vserver!2!rule!2!match!directory = /icons vserver!2!rule!1!handler = common vserver!2!rule!1!match = default vserver!2!ssl_certificate_file = /localcerts/cert.pem vserver!2!ssl_certificate_key_file = /localcerts/key.pem source!1!host = 10.255.254.115:8080 source!1!nick = ldap source!1!type = host For "source!1!host" I've also configured "127.0.0.1:8080" to no avail. At the moment NOTHING is working (I had it working before and one of my configuration changes broke everything...not sure what I tweaked). If I go to https://myserver.whatever.com, I get a blank page. I'm also not certain how to troubleshot / debug the proxy and see why it's breaking or not working. Is something logged somewhere when the sources / proxy is configured? Here's what I want to do: - have this working consistently so that Cherokee can proxy all HTTPS requests to this webapp - I would like to *prevent* a user from having to type the /appname after the URL for the application to load I see in the http reverse proxy handler there are several different options available for rewrite -- I'm not sure, however, if I should be rewriting the URL, adding to the header, and whether or not I should be doing either for the "request" or the "reply." Any thoughts or ideas would be greatly appreciated. Thanks! -james _______________________________________________ Cherokee mailing list [email protected] http://lists.octality.com/listinfo/cherokee
