Proxypass /jenkins to port 8080

apache-2.2Jenkinsportproxypass

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

Best Answer

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