Skip to content

Instantly share code, notes, and snippets.

@makuk66
Created March 19, 2012 10:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save makuk66/2106616 to your computer and use it in GitHub Desktop.
Save makuk66/2106616 to your computer and use it in GitHub Desktop.
jenkins apache rewrite example
<VirtualHost jenkins.mydomain.com:443>
...
RewriteEngine On
RewriteRule ^/$ /jenkins/ [R]
ProxyRequests Off
ProxyPreserveHost on
ProxyPass /jenkins/ http://localhost:8080/jenkins/
<Location /jenkins/>
ProxyPassReverse /
Order deny,allow
Allow from all
</Location>
Header edit Location ^http://jenkins.mydomain.com/jenkins/ https://jenkins.mydomain.com/jenkins/
<Proxy http://localhost:8080/jenkins*>
Order deny,allow
Allow from all
</Proxy>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment