Skip to content

Instantly share code, notes, and snippets.

Created March 6, 2013 13:08
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 anonymous/5099192 to your computer and use it in GitHub Desktop.
Save anonymous/5099192 to your computer and use it in GitHub Desktop.
##############################################
# JENKINS: ci.example.com
##############################################
<VirtualHost *:80>
RedirectMatch ^/(.*) https://ci.example.com/$1
ServerName ci.example.com
</VirtualHost>
<VirtualHost *:443>
ServerName ci.example.com
ServerAlias ci.example.com
# redirect to /jenkins
Redirect / https://ci.example.com/jenkins
ProxyPass /jenkins http://localhost:8080/jenkins
ProxyPassReverse /jenkins http://localhost:8080/jenkins
ProxyRequests Off
<Proxy http://localhost:8080/jenkins*>
Order deny,allow
Allow from all
</Proxy>
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.pem
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment