From c558deef274d838aae5c0366ff7dc2ebce27a981 Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Thu, 20 Sep 2012 09:41:28 -0400 Subject: [PATCH] Support X-Forwarded-Context for subdomain proxy configs (issue 135) --- docs/01_setup.mkd | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/docs/01_setup.mkd b/docs/01_setup.mkd index 6d6f727..fa1bcd9 100644 --- a/docs/01_setup.mkd +++ b/docs/01_setup.mkd @@ -9,6 +9,7 @@ - <context-parameter> *git.repositoryFolder* (set the full path to your repositories folder) - <context-parameter> *groovy.scriptsFolder* (set the full path to your Groovy hook scripts folder) - <context-parameter> *groovy.grapeFolder* (set the full path to your Groovy Grape artifact cache) + - <context-parameter> *web.projectsFile* (set the full path to your projects metadata file) - <context-parameter> *realm.userService* (set the full path to `users.conf`) - <context-parameter> *git.packedGitLimit* (set larger than the size of your largest repository) - <context-parameter> *git.streamFileThreshold* (set larger than the size of your largest committed file) @@ -156,6 +157,15 @@ # If your httpd frontend is https but you are proxying http Gitblit WAR or GO #Header edit Location ^http://([^⁄]+)/gitblit/ https://$1/gitblit/ +# Additionally you will want to tell Gitblit the original scheme and port +#RequestHeader set X-Forwarded-Proto https +#RequestHeader set X-Forwarded-Port 443 + +# If you are using subdomain proxying then you will want to tell Gitblit the appropriate +# context path for your repository url. +# If you are not using subdomain proxying, then ignore this setting. +#RequestHeader set X-Forwarded-Context / + #ProxyPass /gitblit ajp://localhost:8009/gitblit %ENDCODE% **Please** make sure to: -- Gitblit v1.9.1