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 Nov 29, 2018 in New to Confluence

How to use Confluence Cloud for stakeholder management

Most of us don’t need much convincing that stakeholder management is important. It just makes sense that keeping everyone in-the-know on projects and assigning clearly defined roles is key to having ...

1,218 views 4 6
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