Skip to content

Instantly share code, notes, and snippets.

@TehNut
Created September 25, 2014 22:36
Show Gist options
  • Save TehNut/81fe4baab411f2494eae to your computer and use it in GitHub Desktop.
Save TehNut/81fe4baab411f2494eae to your computer and use it in GitHub Desktop.
#Expects Jenkins to be running on port 8080. Obviously you can change it yourself.
#In /etc/default/jenkins, add "--prefix=/jenkins/" to your JENKINS_ARGS line (at the bottom). This will fix all broken links.
<VirtualHost *:80>
ServerName sub.domain.com
ProxyPass /jenkins/ http://localhost:8080/jenkins/ nocanon
ProxyPassReverse /jenkins/ http://localhost:8080/jenkins/
ProxyRequests Off
ProxyPreserveHost On
<Proxy http://localhost:8080/*>
Order deny,allow
Allow from all
</Proxy>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment