Base url problem with mod_proxy

Jae Seong Gu
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 4, 2012
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

0 votes
Septa Cahyadiputra
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 4, 2012

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
TAGS
AUG Leaders

Atlassian Community Events