diff options
author | James Moger <james.moger@gitblit.com> | 2013-10-25 15:25:02 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2013-10-25 18:32:13 -0400 |
commit | 6c4be170559efa112bb92cd1676543e86850e976 (patch) | |
tree | c919d115bae4e1a801e545009e1f17fd6f6f7e40 /src/site/setup_proxy.mkd | |
parent | 3079105705d76ff0fbfcc755825aa75b0b6ef01a (diff) | |
download | gitblit-6c4be170559efa112bb92cd1676543e86850e976.tar.gz gitblit-6c4be170559efa112bb92cd1676543e86850e976.zip |
Documentation
Change-Id: I717e13d1f852a4adf50b547f4769dd62da2384ce
Diffstat (limited to 'src/site/setup_proxy.mkd')
-rw-r--r-- | src/site/setup_proxy.mkd | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/site/setup_proxy.mkd b/src/site/setup_proxy.mkd index b169cefa..f1435f12 100644 --- a/src/site/setup_proxy.mkd +++ b/src/site/setup_proxy.mkd @@ -5,17 +5,21 @@ Gitblit runs fine behind Apache. You may use either *mod_proxy* (GO or WAR) or Each Linux distribution may vary on the exact configuration of Apache 2.2.
Here is a sample configuration that works on Debian 7.0 (Wheezy), your distribution may be different.
-1. First we need to make sure we have Apache's proxy modules available.
----FIXED---
+### Make sure we have Apache's proxy modules
+
+```
sudo su
cd /etc/apache2/mods-enabled
ln -s ../mods-available/proxy.load proxy.load
ln -s ../mods-available/proxy_balancer.load proxy_balancer.load
ln -s ../mods-available/proxy_http.load proxy_http.load
ln -s ../mods-available/proxy_ajp.load proxy_ajp.load
----FIXED---
-2. Then we need to make sure we are configuring Apache to use the proxy modules and to setup the proxied connection from Apache to Gitblit GO or from Apache to your chosen servlet container. The following snippet is stored as `/etc/apache2/conf.d/gitblit`.
----FIXED---
+```
+### Configuring Apache to use the proxy modules
+
+Now we must configure Apache to use the proxy modules and the proxied connection from Apache to Gitblit GO or from Apache to your chosen servlet container. The following snippet is stored as `/etc/apache2/conf.d/gitblit`.
+
+```
# Turn off support for true Proxy behaviour as we are acting as
# a transparent proxy
ProxyRequests Off
@@ -55,7 +59,8 @@ ProxyPreserveHost On #RequestHeader set X-Forwarded-Context /
#ProxyPass /gitblit ajp://localhost:8009/gitblit
----FIXED---
+```
+
**Please** make sure to:
1. Review the security of these settings as appropriate for your deployment
2. Uncomment the *ProxyPass* setting for whichever connection you prefer (http/ajp)
|