• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • None
    • 6.0.0-m77
    • Server - EAP

      Hi Team

      As I already mentioned in CONF-43758, I have trouble configuring Confluence 6 behind a Reverse Proxy without the context path.

      You removed the part in the documentation https://confluence.atlassian.com/confeap/using-apache-with-mod_proxy-480346967.html#UsingApachewithmod_proxy-complex , how this should be configured. So is this an issue at the moment and still open?

      I tried the old way described in the old documentation, but I retrieve every time a redirect from the tomcat to the context path

      Version 1 - is not working
      Described here https://confluence.atlassian.com/doc/using-apache-with-mod_proxy-173669.html#UsingApachewithmod_proxy-complex
      Vhost

      ProxyPass / http://localhost:8090/confluence
        ProxyPassReverse / http://localhost:8090/confluence
        ProxyHTMLURLMap / /confluence/
        <Location /confluence>
          Require all granted
        </Location>
        
        ProxyPass /synchrony http://localhost:8091/synchrony
        <Location /synchrony>
            Require all granted
            RewriteEngine on
            RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
            RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]
            RewriteRule .* ws://localhost:8091%{REQUEST_URI} [P]
        </Location>
      
      
      

      Server.xml

      <Context path="/confluence" docBase="../confluence" debug="0" reloadable="true">
      

      Our own old way - not working too
      If I use this version, I can browse Confluence with https://testconfluence.bitvoodoo.ch/confluence/ - I don't know where this context path is coming from ....

      Vhost

      ProxyPass / http://localhost:8090/
        ProxyPassReverse / http://localhost:8090/
        <Location /confluence>
          Require all granted
        </Location>
        
        ProxyPass /synchrony http://localhost:8091/synchrony
        <Location /synchrony>
            Require all granted
            RewriteEngine on
            RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
            RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]
            RewriteRule .* ws://localhost:8091%{REQUEST_URI} [P]
        </Location>
      
      

      Server.xml

      <Context path="" docBase="../confluence" debug="0" reloadable="true">
      
      

      Did I missed something?
      Is the order in the VHost important?
      Why did you removed the documentation how this should be configured?

            [CONFSERVER-43770] Reverse Proxy Issue - Running without BaseURL

            Glad to hear oliver.straesser@getunik.com Please send us more feedback if you face any more problems with 6.0. Thanks!

            Brendan McNamara (Inactive) added a comment - Glad to hear oliver.straesser@getunik.com Please send us more feedback if you face any more problems with 6.0. Thanks!

            Hi Brendan

            Yes thank you! Everything is working now with Apache, Reverse proxy & without context path

            Thanks!

            Oliver Sträßer added a comment - Hi Brendan Yes thank you! Everything is working now with Apache, Reverse proxy & without context path Thanks!

            Hi oliver.straesser@getunik.com,

            I am going to mark this ticket as resolved now. Please make a comment here if you are still having problems and you don't think this ticket is resolved.

            Thanks!

            Brendan McNamara (Inactive) added a comment - Hi oliver.straesser@getunik.com , I am going to mark this ticket as resolved now. Please make a comment here if you are still having problems and you don't think this ticket is resolved. Thanks!

            Hi oliver.straesser@getunik.com, the complex example is back on this page now https://confluence.atlassian.com/display/CONFEAP/Using+Apache+with+mod_proxy, and I've also made the Apache modules that need to be enabled more obvious. Sorry for the omission, as Brendan mentioned we're working on updating a KB article that covers more configurations, but it won't be ready for a little while yet.

            Rachel Robins added a comment - Hi oliver.straesser@getunik.com , the complex example is back on this page now https://confluence.atlassian.com/display/CONFEAP/Using+Apache+with+mod_proxy , and I've also made the Apache modules that need to be enabled more obvious. Sorry for the omission, as Brendan mentioned we're working on updating a KB article that covers more configurations, but it won't be ready for a little while yet.

            To answer your question about the why the documentation has been removed we are currently in the process of consolidating our documentation across products and are planning are knowledge base article that specifically covers complex configuration. That doc is not ready yet so in the mean time we will re-instate the example in this document.

            Cheers, Brendan.

            Brendan McNamara (Inactive) added a comment - To answer your question about the why the documentation has been removed we are currently in the process of consolidating our documentation across products and are planning are knowledge base article that specifically covers complex configuration. That doc is not ready yet so in the mean time we will re-instate the example in this document. Cheers, Brendan.

            Hey oliver.straesser@getunik.com,

            I think you are right about the order. Try putting the synchrony config ahead of the confluence config.

            ProxyPass /synchrony http://localhost:8091/synchrony
            <Location /synchrony>
               Require all granted
               RewriteEngine on
               RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
               RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]
               RewriteRule .* ws://localhost:8091%{REQUEST_URI} [P]
            </Location>
            
            ProxyPass / http://localhost:8090/
            ProxyPassReverse / http://localhost:8090/
            <Location />
               Require all granted
            </Location>
            

            Also I changed your location from <Location /confluence> to <Location />. I had to do that to get it to work.

            Brendan McNamara (Inactive) added a comment - Hey oliver.straesser@getunik.com , I think you are right about the order. Try putting the synchrony config ahead of the confluence config. ProxyPass /synchrony http: //localhost:8091/synchrony <Location /synchrony> Require all granted RewriteEngine on RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC] RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC] RewriteRule .* ws: //localhost:8091%{REQUEST_URI} [P] </Location> ProxyPass / http: //localhost:8090/ ProxyPassReverse / http: //localhost:8090/ <Location /> Require all granted </Location> Also I changed your location from <Location /confluence> to <Location />. I had to do that to get it to work.

              Unassigned Unassigned
              95cffe71a7e5 Oliver Sträßer
              Affected customers:
              0 This affects my team
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: