Looks like you're not using AJP; that looks like the standard HTTP listener connector, and the config in apache looks like apache doing the balancing directly, rather than the AJP worker doing the balancing. You can check for a line like this in your server.xml file:
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /> The most important part being the "protocol=" bit. You could also check for the relevant configuration in httpd.conf, such as the following configuration keys: JkWorkersFile <- this one is essential JkLogFile JkLogLevel JkLogStampFormat If your apache version is built with dynamic module loading enabled, then you can check for the jk module: LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so Which is the module handling the apache side of the AJP bridge. HTH, Robert On Sep 19, 2011, at 9/199:29 AM , Michael Molloy wrote: > Unfortunately, the Apache expert is no longer here. Does the following code > from my tomcat server.xml file answer your question? I don't think we're > using AJP or anything else. It looks to me like the Apache server is just > sending it to Tomcat over port 8080. > > <Connector port="8080" maxHttpHeaderSize="8192" > maxThreads="350" minSpareThreads="25" maxSpareThreads="75" > enableLookups="false" redirectPort="8443" acceptCount="100" > connectionTimeout="20000" disableUploadTimeout="true" > > > <Valve className="org.apache.catalina.valves.RemoteAddrValve" > allow="xxxxxxxxxxxx" deny=""/> > > </Connector> > > > The corresponding line from the apache httpd.conf file is > > BalancerMember http://xxx.xxx.xxx.xxx:8080 loadfactor=50 route=APP01 > timeout=60 > > > --Michael > > > On Sep 19, 2011, at 8:41 AM, Lenny Primak wrote: > >> I have a similar setup and it works without BaseURLSource override. >> What I do is use AJP protocol to communicate between apache and Tomcat. >> What's your communication medium between apache and tomcat? >> >> On Sep 19, 2011, at 1:50 AM, Michael Molloy wrote: >> >>> I have my first Tapestry application ready for production, but I'm having >>> some problems, and I think it is Tapestry rather than Apache. >>> >>> We have hardware load balancers sitting in front of two apache httpd >>> servers. The apache servers sit in front of 4 tomcat servers. SSL is >>> handled by the load balancers. >>> >>> I have put the tapestry application on one tomcat server and configured the >>> apache servers to pass requests to it. >>> >>> When I go to https://secure.mysite.com/tapestry_app, I get the login page >>> as expected. However, when I try to log in, it goes to >>> http://10.180.57.73:8080/tapestry_app. >>> >>> Reading http://tapestry.apache.org/https.html made me think that I needed >>> to add the contributeServiceOverride example to the AppModule.java class, >>> which I did as follows: >>> >>> public static void >>> contributeServiceOverride(MappedConfiguration<Class,Object> configuration) >>> { >>> BaseURLSource source = new BaseURLSource() >>> { >>> public String getBaseURL(boolean secure) >>> { >>> String protocol = secure ? "https" : "http"; >>> >>> int port = secure ? 443 : 8080; >>> >>> return String.format("%s://secure.mysite.com:%d", protocol, >>> port); >>> } >>> }; >>> >>> configuration.add(BaseURLSource.class, source); >>> } >>> >>> However, that has not made any difference. >>> >>> I also enabled production-mode and added @Secure to my login page. However, >>> I get an SSL error in the browser and the page won't even load. It looks >>> like the application is trying to send me to the 10.180.57.73:8080 address, >>> but the browser won't go due to the certificate not matching. >>> >>> Can anyone tell me what I'm doing wrong or missing? Or is it more likely >>> that this is some kind of apache misconfiguration? I don't think it is >>> because the rest of our apps are working fine, and I copied the >>> configuration and only modified what I needed to in order to point to the >>> tapestry application. >>> >>> Thanks for any help. >>> >>> --Michael >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >>> For additional commands, e-mail: users-h...@tapestry.apache.org >>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org