Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

WHK
Contributor
January 14, 2019

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 answer

0 votes
Gonchik Tsymzhitov
Community Champion
January 14, 2019
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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events