Here is how to setup reverse proxy on Apache to work with Confluence.
Place this in the httpd.conf file for Apache web server:
<VirtualHost *>
DocumentRoot "/home/confluence.foo/http"
ServerName www.foo.com
ServerAlias new.foo.com foo.com
<Directory "/home/confluence.foo/http">
allow from all
Options +Indexes
</Directory>
# Put this in the main section of your configuration
# (or desired virtual host, if using Apache virtual hosts)
# from old foo:
ProxyRequests Off
# from old foo:
ProxyPreserveHost On
# following lines from old foo:
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
# Log error: permission denied proxy http attempt to connect to
# Need to do command this under CentOS/SELinux: togglesebool httpd_can_network$
# Above will be lost after reboot. This is needed to make it permanent:
# setsebool -P httpd_can_network_connect true
#
ProxyPass / http://96.8.1.1:8099/
ProxyPassReverse / http://96.8.1.1:8099/
<Location /confluence>
Order allow,deny
Allow from all
</Location>
</VirtualHost>
Labels:
None
Add Comment