Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Page not found after login page

keshabb November 23, 2016

Following the KB https://confluence.atlassian.com/bamkb/404-page-as-a-result-of-double-encoded-slashes-in-the-url-when-using-apache-302810789.html. I have the following configuration, which is still not working. What am i missing?   

ServerName example.com

    DocumentRoot /var/www/html

    ErrorLog ${APACHE_LOG_DIR}/error.log

    CustomLog ${APACHE_LOG_DIR}/access.log combined

    RemoteIPHeader X-Forwarded-For

    RewriteEngine On

    RewriteCond %{HTTP:X-Forwarded-Proto} =http

    RewriteRule . https://%{HTTP:Host}%{REQUEST_URI} [L,R=permanent]

    <Proxy *>

       Order deny,allow

       Allow from all

    </Proxy>

 

    ProxyPreserveHost On

    ProxyRequests           Off

    RewriteRule     /(.*)    ajp://<IP>/$1    [NE,P,L]

    ProxyPassReverse        /       ajp://<IP>:8009/


Still getting


https://example.com/login.action?os_destination=%252Findex.action&permissionViolation=true

instead of https://bar.rvbdtechlabs.net/login.action?os_destination=%2Findex.action&permissionViolation=true

1 answer

0 votes
keshabb November 28, 2016

Found a solution. Seems that I need to add NE at https redirect too.

 

RewriteRule . https://%{HTTP:Host}%{REQUEST_URI} [NE,L,R=permanent]

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events