Page not found after login page

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

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
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

1,355 views 2 13
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you