|
| Apache Geronimo > Discussion Forums | User List | Dev List | Wiki | Issue Tracker |
|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
configure 3 IP based apache vhosts to 1 geronimo hostGreetings geronimo users.
I have a question for people regarding the configuration of geronimo 2.1.4 I'm trying to get working. I have 3 apache IP based virtual hosts. hosta, hostb, hostc I have 1 backend geronimo instance with three apps: localhost/hostaApp, localhost/hostbApp, localhost/hostcApp Im using mod_proxy ajp/load balancing to attempt connect the two together in each vhost configuration, I have the balancer setup and configured as so: <VirtualHost 1.2.3.4:80> ServerName www.hosta.com ServerAlias hosta.com *.hosta.com <Proxy balancer://tomcat> BalancerMember ajp://localhost:8009 route=tomcat1 </Proxy> ProxyPass / balancer://tomcat/hostaApp stickysession=JSESSIONID CustomLog /var/log/apache2/hosta.log combined LogLevel debug </VirtualHost> with this setup, I type in at the browser "http://www.hosta.com" and what I get back is the url "http://www.hosta.com/hostaApp" I want the proxy to work with out rewriting the url and adding the /hostaApp at the end. In the debug logs I see stuff like [Fri Jun 12 10:34:31 2009] [debug] mod_proxy_balancer.c(536): proxy: BALANCER (balancer:// tomcat) worker (ajp://localhost:8009) rewritten to ajp://localhost:8009/hostahostaApp/ ... [Fri Jun 12 10:34:31 2009] [debug] proxy_util.c(1916): proxy: connecting ajp://localhost:8 009/hostahostaApp/ to localhost:8009 [Fri Jun 12 10:34:31 2009] [debug] proxy_util.c(2015): proxy: connected /hostahostaApp/ to localhost:8009 ... Does someone here know if a setup like this is possible. Having 3 apache vhosts proxied to a single vhost geronimo backend serving a different app for the 3 vhosts? I have had this configuring working in the past by making 3 geronimo vhosts one for each app but I'm hoping to avoid the added geronimo configuration if possible. Maybe there is some changes I can make to the ajp connector? Thanks for you help in looking at this. Bill. |
|
|
Re: configure 3 IP based apache vhosts to 1 geronimo hostI don't understand what you want to do yet..... I'm also not that
familiar with vhosts. one possibility... deploy all three apps on geronimo at / rather than at /hostxApp, with virtual hosts specified for each app. Is this the configuration you tried, works, and you don't like? another possiblilty.... deploy apps at separate context roots as at present, but have mod_proxy unrewrite the urls on the return so they appear to not have the extra goo in them. I have no idea if this is in any way plausible :-/ something else? thanks david jencks On Jun 12, 2009, at 9:13 AM, Bill Brown wrote: > > Greetings geronimo users. > > I have a question for people regarding the configuration of geronimo > 2.1.4 > I'm trying to get working. > > I have 3 apache IP based virtual hosts. hosta, hostb, hostc > > I have 1 backend geronimo instance with three apps: localhost/ > hostaApp, > localhost/hostbApp, localhost/hostcApp > > Im using mod_proxy ajp/load balancing to attempt connect the two > together > in each vhost configuration, I have the balancer setup and > configured as so: > > <VirtualHost 1.2.3.4:80> > ServerName www.hosta.com > ServerAlias hosta.com *.hosta.com > > <Proxy balancer://tomcat> > BalancerMember ajp://localhost:8009 route=tomcat1 > </Proxy> > > ProxyPass / balancer://tomcat/hostaApp stickysession=JSESSIONID > > CustomLog /var/log/apache2/hosta.log combined > LogLevel debug > </VirtualHost> > > with this setup, I type in at the browser "http://www.hosta.com" > and what I > get back is the url "http://www.hosta.com/hostaApp" > > I want the proxy to work with out rewriting the url and adding the / > hostaApp > at the end. > > In the debug logs I see stuff like > > [Fri Jun 12 10:34:31 2009] [debug] mod_proxy_balancer.c(536): proxy: > BALANCER (balancer:// > tomcat) worker (ajp://localhost:8009) rewritten to > ajp://localhost:8009/hostahostaApp/ > ... > [Fri Jun 12 10:34:31 2009] [debug] proxy_util.c(1916): proxy: > connecting > ajp://localhost:8 > 009/hostahostaApp/ to localhost:8009 > [Fri Jun 12 10:34:31 2009] [debug] proxy_util.c(2015): proxy: > connected > /hostahostaApp/ to localhost:8009 > ... > > Does someone here know if a setup like this is possible. Having 3 > apache > vhosts proxied to a single vhost geronimo backend serving a > different app > for the 3 vhosts? > > I have had this configuring working in the past by making 3 geronimo > vhosts > one for each app but I'm hoping to avoid the added geronimo > configuration if > possible. > > Maybe there is some changes I can make to the ajp connector? > > Thanks for you help in looking at this. > Bill. > > > -- > View this message in context: http://www.nabble.com/configure-3-IP-based-apache-vhosts-to-1-geronimo-host-tp24001954s134p24001954.html > Sent from the Apache Geronimo - Users mailing list archive at > Nabble.com. > |
|
|
Re: configure 3 IP based apache vhosts to 1 geronimo hostHi David:
Thanks for the suggestions. I managed to get the sites to load now by adding the trailing slash / character in my ProxyPass directive after the app name. ProxyPass / balancer://tomcat/hostaApp stickysession=JSESSIONID changed to ProxyPass / balancer://tomcat/hostaApp/ stickysession=JSESSIONID This is good but now there is another error for the app which has container managed security: I'm using j_security_check in a form and evertyime I attempt to access a protected page I'm kicked to the login form as standard, but when I authenticate, I get a 408 error with this error message in Firefox: Connection Interrupted The connection to the server was reset while the page was loading. The network link was interrupted while negotiating a connection. Please try again. The url displaying in the browser is "http://hosta/j_security_check" Does this look anymore fimiliar to something you've seen previously? Thanks again. Bill. |
|
|
Re: configure 3 IP based apache vhosts to 1 geronimo hostOn Jun 12, 2009, at 11:49 AM, Bill Brown wrote: > > Hi David: > > Thanks for the suggestions. I managed to get the sites to load now by > adding the trailing slash / character in my ProxyPass directive > after the > app name. > > ProxyPass / balancer://tomcat/hostaApp stickysession=JSESSIONID > changed to > ProxyPass / balancer://tomcat/hostaApp/ stickysession=JSESSIONID > > This is good but now there is another error for the app which has > container > managed security: > > I'm using j_security_check in a form and evertyime I attempt to > access a > protected page I'm kicked to the login form as standard, but when I > authenticate, I get a 408 error with this error message in Firefox: > > Connection Interrupted > The connection to the server was reset while the page was loading. > The network link was interrupted while negotiating a connection. > Please try > again. > > The url displaying in the browser is "http://hosta/j_security_check" > > Does this look anymore fimiliar to something you've seen previously? I've never seen this. On the other hand I've never used a proxy.... maybe its related to that. david jencks > > Thanks again. > Bill. > > -- > View this message in context: http://www.nabble.com/configure-3-IP-based-apache-vhosts-to-1-geronimo-host-tp24001954s134p24004315.html > Sent from the Apache Geronimo - Users mailing list archive at > Nabble.com. > |
| Free embeddable forum powered by Nabble | Forum Help |
