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
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,577 views 26 14
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