Confluence behind Apache mod_proxy with setup similar to Stash

Andrei [errno] Community Champion Dec 23, 2012

would like to setup : http://confluence.example.com

from Stash docs:

https://confluence.atlassian.com/display/STASH/Integrating+Stash+with+Apache+HTTP+Server#IntegratingStashwithApacheHTTPServer-Step1:ConfiguretheTomcatConnector

scheme="http"
proxyName="stash.example.com" 
proxyPort="80"

with mod_proxy setup :

ProxyPass        / http://localhost:7990/ connectiontimeout=5 timeout=300
ProxyPassReverse / http://localhost:7990/

has someone been able to configure Confluence the same way? I am aware of https://confluence.atlassian.com/display/DOC/Using+Apache+with+mod_proxy

just wondering - why is it using different instructions? something in Confluence that prevents this way?

2 answers

Create separate VirtualHosts and use a NameVirtualHost declaration at the top. Try something along the lines of:

NameVirtualHost *:80

<VirtualHost *>
    ServerName confluence.example.com

    ProxyRequests Off
    ProxyPreserveHost On
 
    <Proxy *>
        Order deny,allow
        Allow from all
    </Proxy>
     
    ProxyPass / http://localhost:8090/confluence
    ProxyPassReverse / http://localhost:8090/confluence
        
    <Location />
        Order allow,deny
        Allow from all
    </Location>
</VirtualHost>

<VirtualHost *>
    ServerName stash.example.com
     
    ProxyRequests Off
    ProxyPreserveHost On
 
    <Proxy *>
        Order deny,allow
        Allow from all
    </Proxy>
     
    ProxyPass / http://localhost:7990/stash connectiontimeout=5 timeout=300
    ProxyPassReverse / http://localhost:7990/stash
     
    <Location />
        Order allow,deny
        Allow from all
    </Location>
</VirtualHost>

Andrei [errno] Community Champion Dec 29, 2012

thanks - my tools live on separate servers. will fight it a bit more and report back :)

Not really... Truth be told, it's a case of different people in different teams wrote different docs. Are you having issues with the configuration?

Andrei [errno] Community Champion Dec 29, 2012

yes, straigtforward attempt to mirror Stash's instructions did not work for Confluence, but worked for JIRA. well - will try again. thanks!

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

2,901 views 27 12
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