Spring Security failing with URL Redirection
I've stripped this back to the simplest security config :
In my security-context.xml file
In my web.xml
<security:intercept-url pattern="/**" access="ROLE_USER" />
In Apache do a rewrite in Apache so that http://localhost/myapp appears at http://localhost using this
# Remove double "myapp" in url
RewriteRule ^/myapp/(.*) /$1
# Check to see if content can be served locally - rewrite back if not
RewriteCond /dir/to/static/content -f
RewriteRule ^/(.*) /myapp/$1 [PT]
JkMount /myapp/* loadbalancer
However, logging in using the built in Spring Security I get this
Reason: Authentication method not supported: GET
This is with version 3.0.6 of Spring Security and the rewriting works fine as a standard Spring app without security.
Any help or advice as I've been struggling with this for ages.