Created
September 25, 2014 22:36
-
-
Save TehNut/81fe4baab411f2494eae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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