I managed to get it working partially; I installed mod_proxy and mod_proxy_html; I accidently pointed it at /jira as I was looking at another tutorial. Either way I added this to the end of my default sites-available
<VirtualHost :8080> ProxyRequests Off ProxyPass /jira http://example.com:8080/ ProxyPassReverse /jira http://example.com:8080/ </VirtualHost>
Now I have since removed that and it still works when I hit example.com/jira I get redirected to example.com:8080
So I have looked and read everywhere the answer isn't; I was hoping if anyone could help me resolve my issue.
Make it so that when I hit example.com/jira doesn't work since I reverted all my changes that points it examples.com:8080
Make it work for example.com/jenkins redirects to example.com:8080 but keeps the example.com/jenkins in the address bar.
Which is better for this mod_proxy or mod_rewrite?
Please be explicit as possible I am new to apache. :)
Please and thank you.