I'm deploying a spring application to a tomcat7 server. It works ok, but when i try to set up an apache proxy in front of that spring security (authentication) does not work, it's always redirecting to the login page.
The proxy configuration i'm trying:
<VirtualHost *:80>
ServerName www.myhost.com
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPreserveHost Off
ProxyPass / http://192.168.0.2:8080/my-spring-app/
ProxyPassReverse / http://192.168.0.2:8080/my-spring-app/
ProxyPassReverseCookiePath /my-spring-app /
</VirtualHost>
I've copied the configuration from other proxy working ok on top of another spring application.
I need to make this deployment without using an ajp proxy. Any clues?