Rob, thanks for your reply. Yes I was using Apache rewriting that translate a POST request into a GET request.
I was unable to get this working with Apache mod_jk and used Apache mod_proxy instead.
This is the solution I came up with :
In Apache
Code:
<Proxy>
Order deny,allow
Allow from all
</Proxy>
RewriteCond /dir/to/static/content/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*) ajp://127.0.0.1:8009/myapp/$1 [P]
ProxyPassReverse / http://myurl/myapp/
ProxyPassReverseCookiePath /myapp /
In Spring
Code:
<security:http auto-config="false" use-expressions="true" disable-url-rewriting="true">
<security:intercept-url pattern="/app/login" access="permitAll" />
<security:intercept-url pattern="/app/**" access="hasAnyRole('ROLE_USER', 'ROLE_ADMIN')" />
<security:form-login
login-page="/app/login"
authentication-failure-url="/app/login?f=1"
default-target-url="/app/map"/>
<security:logout logout-url="/app/logout"/>
</security:http>