Skip to content

Instantly share code, notes, and snippets.

@joonvena
Created July 13, 2019 13:17
Show Gist options
  • Save joonvena/f48779c10cffa7ddb88d07ae6440f0fc to your computer and use it in GitHub Desktop.
Save joonvena/f48779c10cffa7ddb88d07ae6440f0fc to your computer and use it in GitHub Desktop.
proxy conf
<VirtualHost *>
ServerName gerrit
ProxyRequests Off
ProxyVia Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
<Location "/">
AuthType Basic
AuthName "Gerrit Code Review"
AuthBasicProvider file
AuthUserFile '/usr/local/apache2/conf/.htpasswd'
Require valid-user
</Location>
AllowEncodedSlashes On
ProxyPass / http://gerrit:8080/ nocanon
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment