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: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]