Linux: Route subfolder to different port [closed]

I have setup a JIRA instance and it now listens on

http://mydomain.com:8080

Now I want to expose it like

http://mydomain.com/jira

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

Answer

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.

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

Leave a Comment