Linux: Route subfolder to different port [closed]

I have setup a JIRA instance and it now listens on

Now I want to expose it like

Can I do this with linux tools (iptables …) alone (and how) or do I need a web server?

Thanks for every answer to a newbie in the linux world


You can change port numbers using iptables like redirecting traffic from port 8080 to port 80. However, you need to have an HTTP proxy server to change the domain name or the file path. So, you can not do the whole thing using iptables alone.

Source : Link , Question Author : heinob , Answer Author : Khaled

Leave a Comment