Announcement Announcement Module
Collapse
No announcement yet.
How can I setup useRelativeContext on filters in namespace setup? Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How can I setup useRelativeContext on filters in namespace setup?

    Hi,

    I have a namespace configured Spring-Security application. The application is run behind an Apache Proxy with different pathes. So, the application is called via a subdomain like app1.example.com but is deployed on the server as /app1, so the ProxyPass directive is like ProxyPass / ajp://localhost/app1.

    The problem is that Spring-Security alway redirects everything to /app1, which leads to a 404 - ResourceNotFound, because it should be just /.

    I found the useRelativeContext Boolean in AbstractProcessingFilter but I cannot configure it in my namespace configuration which is configured as follow:


    Code:
    <security:http>
      <security:form-login login-page="/login.html" default-target-url="/postings" authentication-failure-url="/login.html" />
      <security:anonymous />
      <security:logout />
    </security:http>
    How can I set the useRelativeContext to true?

    Thank you very much
    Timo Meinen
Working...
X