1

Hi I have a VPS running cpanel and it is also running Jenkins on port 8080 I have used proxypass in the Apache config to redirect jenkins.rystuff.net to port 8080 but was wondering if there is a way to redirect rystuff.net/jenkins to port 8080 so that ever way you get to my jenkins page This is what I have used in my httpd.conf to redirect jenkins.rystuff.net to port 8080

<VirtualHost 23.227.161.55:80>
    ServerName jenkins.rystuff.net
    ServerAlias jenkins.rystuff.net
    ProxyPass / http://localhost:8080/
    ProxyPassReverse / http://localhost:8080/
</VirtualHost>

Thanks in advance

Ry_dog101
  • 31
  • 2

1 Answers1

2

Create another vhost:

<VirtualHost 23.227.161.55:80>
    ServerName rystuff.net
    ProxyPass /jenkins http://localhost:8080/
    ProxyPassReverse /jenkins http://localhost:8080/
</VirtualHost>

You do not need ServerAlias if its the same as ServerName

xeon
  • 3,806
  • 18
  • 18
  • 1
    Not working just giving me a 404 errror – Ry_dog101 Jul 02 '14 at 12:52
  • Any relevant logs? You might need to do something similar to this, http://serverfault.com/questions/529128/how-to-merge-multiple-proxypass-directives-in-apache – xeon Jul 03 '14 at 02:06