Base url problem with mod_proxy

I use virtual hosts for serving my Confluence.
First, httpd.conf is below:
<VirtualHost *:80>
   ServerName wiki.MYDOMAIN.com

   ProxyRequests Off
   <Proxy *>
      Order deny,allow
      Allow from all
   </Proxy>

   ProxyPass / http://localhost:8090/
   ProxyPassReverse / http://localhost:8090/
   <Location />
      Order allow,deny
      Allow from all
   </Location>
</VirtualHost>

And server.xml is below:

<Connector port="8090" redirectPort="8443" ... />
   <Engine name="Standalone" defaultHost="localhost" debug="0">
      <Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="false">
         <Context path="" docBase="../confluence" debug="0" reloadable="true" useHttpOnly="true">

Finally, confluence's base url is

http://wiki.MYDOMAIN.com

and my web browser's url is also that is.

In this situation, there is no warning message on 'Server Base Url' in General Configuration, but when I go to 'Plugins' section, then the server which running confluence loose connection for a while. But weired thing is when I approach using ip(http://ip:8090) and changed base url with that then there is no problem. works great.

What's wrong with me?

1 answer

Hi Jason,

You might need to configure the redirection properly with proxyName and proxyPort parameter implemented as mentioned here:

https://confluence.atlassian.com/display/DOC/Using+Apache+with+mod_proxy#UsingApachewithmod_proxy-SettheURLforredirection

Hope it helps.

Cheers,
Septa Cahyadiputra

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,792 views 26 10
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