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

This widget could not be displayed.

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
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

466 views 6 6
Join discussion

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