apache tomcat proxypass

Alles, was den Apache betrifft, kann hier besprochen werden.

apache tomcat proxypass

Postby perl » 12. October 2011 16:16

Hi everyone,
This is my first topic and first time of configuring apache 2.2 as a frontend web server and tomcat server running in backend with aplication.
I have a problem which and cannot find any suitable answers on any forums.
The problem is in using redirecting from apache to tomcat ans using https
apache configs:

Code: Select all
<VirtualHost *:80>
ServerName myserver.loc
ProxyPass / ajp://myserver.loc.local:8009/
ProxyPassReverse / ajp://myserver.loc.local:8009/
</VirtualHost>





and ssl.conf:
Code: Select all
<VirtualHost *:443>
ServerName myserver.loc

SSLProxyEngine On
SSLEngine on

SSLCertificateFile cert/some.crt
SSLCertificateKeyFile cert/some.pem


ProxyPass / ajp://myserver.loc.local:8009/
ProxyPassReverse / ajp://myserver.loc.local:8009/
</VirtualHost>


Configuration of server.xml in tomcat:

Code: Select all
<Connector port="8009"
enableLookups="false"
redirectPort="8443"
protocol="AJP/1.3"
proxyName="myserver.loc"
/>


When going throgh http works fine, when tomcat changes the protocol to https, this is done in application when hitting the login page for example, it doesn`t work anymore, i get the status: 310 ERR_TOO_MANY_REDIRECTS on Chrome.
When forcing to use https by hand it connects and work fine, what does it mean? If tomcat changes the protocol, beetwen http and https it goes back to the same connector and fails because the connector was set for other protocol?
Pleas give me some answers,
Thank you.
perl
 
Posts: 1
Joined: 12. October 2011 16:14

Return to Apache

Who is online

Users browsing this forum: No registered users and 10 guests