Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,294,995
Community Members
 
Community Events
165
Community Groups

How to change the base directory url for web installer confluence using a reverse proxy?

Need change the base directory for a lastest confluence but can not.

 

I have installed from the bas the confluence and change the conf/server.xml to bind 127.0.0.1 only:

 

<Connector port="8090" connectionTimeout="20000" redirectPort="8443" address="127.0.0.1" ...

<Connector port="8090" connectionTimeout="20000" redirectPort="8443" address="127.0.0.1" ...

<Connector port="8443" maxHttpHeaderSize="8192" address="127.0.0.1" ...

<Connector port="8090" connectionTimeout="20000" redirectPort="8443" address="127.0.0.1" ...

 

Ok, now make a reverse proxy for publish the service:

 

<VirtualHost *:443>

    ...

    # Confluence
        Redirect 301 /notes /notes/
        ProxyPreserveHost On
        ProxyPass /notes/ http://127.0.0.1:8090/
        ProxyPassReverse /notes http://127.0.0.1:8090/
</VirtualHost>

 

Have publish the confluence in http://mysite.com/notes/

 

Now, access from http://mysite.com/notes/ but the web installer redirect me to https://mysite.com/bootstrap/selectsetupstep.action , the web installer does not dettect the notes/ folder.

 

I have modify the path:

From conf/server.xml:

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

 

To conf/server.xml:

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

 

And, from synchrony-proxy/WEB-INF/web.xml:

<url-pattern>/*</url-pattern>

 

To <url-pattern>/notes/*</url-pattern>

 

But does not works, show a http status 404.

 

Howto define the /notes/ directory in the confluence for web installer?

 

1 comment

What about these parameters in connector ? 

proxyName
="confluence.your-domain.com" proxyPort="80"

 

https://confluence.atlassian.com/confkb/how-to-use-nginx-to-proxy-requests-for-confluence-313459790.html

Comment

Log in or Sign up to comment
TAGS
Community showcase
Published in Confluence

Confluence: Where work and wellness meet

Feeling overwhelmed by the demands of work and life? With a 25% increase in the prevalence of anxiety and depression worldwide during the pandemic, for most of us, it’s a resounding yes . 🙋‍♀️ ...

848 views 10 24
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you