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