|
From: Jan B. <ja...@we...> - 2007-09-04 08:03:11
|
Hi Paul, The thing to do when using mod_proxy is to tell it not to mess around with the Host: header and preserve the original. Jetty always obeys the Host: header and thus will redirect to the apache front end. The setting you want is called ProxyPreserveHostDirective explained here: http://httpd.apache.org/docs/2.0/mod/mod_proxy.html cheers Jan prule wrote: > I believe that there is some jetty configuration required when using > mod_proxy - jetty needs to be configured so that it knows what port httpd is > using - this way when the java webapp does a redirect it won't redirect to > 8080. > > I know how to do this using Tomcat, it is described here: > http://tomcat.apache.org/tomcat-5.5-doc/proxy-howto.html > > I can't find any information about how to tell jetty what the proxy port is > though, so at the moment (with only httpd configured with mod_proxy), the > login redirect screws everything up because it redirects to port 8080 > instead of 80. > > > > Greg Wilkins wrote: >> >> Eric, >> >> for mod_proxy, the best resource is really the apache pages themselves >> as you don't need any special configuration on jetty. >> >> for mod_ajp we have some pages on the jetty wiki for jetty 6 that >> are recent >> >> I think mod_jk2 is deprecated and you can just use mod_jk >> or mod_proxy_ajp (which I prefer) >> >> The ajp in jetty 6.1 is to be considered beta quality. >> >> cheers >> >> >> Eric Rizzo wrote: >>> I've been investigating the options for putting Apache in front of >>> Jetty. From what I can tell the options are Apache mod_proxy to Jetty >>> running on a different port (8080 will do just fine), or Apache mod_jk >>> to Jetty with the AJP listener configured. >>> For Jetty 5 I can find this: >>> http://jetty.mortbay.org/jetty5/faq/faq_s_200-General_t_apache.html >>> and this: >>> http://jetty.mortbay.org/jetty5/faq/faq_s_700-Clustering_t_modjk.html >>> >>> But I am concerned about the accuracy of those pages (they're pretty >>> old). Can anyone comment on whether or not the information they >>> contain is still valid. Specifically: >>> >>> Is the comment about mod_proxy not supporting persistent connections >>> still true? >>> >>> Is mod_jk2 or mod_jk recommended when choosing the AJP route? (I've >>> read that jk2 is deprecated, but can't seem to confirm that) >>> >>> What, if anything, is different about Jetty 6 and mod_proxy or mod_jk? >>> I remember seeing a message here a while back about Jetty 6 not >>> including the AJP listener, but can't find that message now. >>> >>> One of the listed drawbacks of mod_jk is that it might require >>> restarting Apache whenever Jetty is restarted. Is that still true? In >>> my situation that is a bit of a problem because I don't control the >>> Apache instance. >>> >>> I guess this is another plea to Greg and team for some updated docs. >>> Hopefully the info from above pages can be used without much >>> modification. >>> I am just trying to avoid banging my head (and my Apache admin's head) >>> against some walls, by making sure the info we start with is at leat >>> mostly valid. >>> >>> Thanks in advance, >>> Eric >>> >>> ------------------------------------------------------------------------- >>> Take Surveys. Earn Cash. Influence the Future of IT >>> Join SourceForge.net's Techsay panel and you'll get the chance to share >>> your >>> opinions on IT & business topics through brief surveys - and earn cash >>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >>> _______________________________________________ >>> Jetty-support mailing list >>> Jet...@li... >>> https://lists.sourceforge.net/lists/listinfo/jetty-support >>> >> >> -- >> Greg Wilkins<gr...@we...> US: +1 3104915462 IT: +39 3349267680 >> http://www.webtide.com UK: +44(0)2079932589 AU: +61(0)417786631 >> >> ------------------------------------------------------------------------- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share >> your >> opinions on IT & business topics through brief surveys - and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> _______________________________________________ >> Jetty-support mailing list >> Jet...@li... >> https://lists.sourceforge.net/lists/listinfo/jetty-support >> >> > -- Jan Bartel, Webtide LLC | ja...@we... | http://www.webtide.com |