-4

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

1
  • Thank you very much for downvoting my question without telling me a reason, so I can stay in the comfortable state of innocence
    – heinob
    Oct 14, 2012 at 8:19

3 Answers 3

1

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.

1
  • I will check out a HTTP proxy for my system. Thanks for your answer.
    – heinob
    Oct 14, 2012 at 8:25
1

You can configure this in Jira's Tomcat configuration files. This is the only place you should configure that as Jira needs to know this to generate the proper links within Jira. The Jira documentation refers how to do (configure port and where Jira listens) this in multiple places.

1
  • Thanks for your answer. I have found that, but it does not solve the path issue: .../jira --> JIRA
    – heinob
    Oct 14, 2012 at 8:25
0

you can try the following to achieve what you want 1) in iptables check for the destination server and redirect the traffic to port 8080 2) in your apache server have a virtual host defined that listens on port 8080 3) as the directory index of this virtualhost have i file which calls the front controller of jira

1
  • I do not have an appache server (yet).
    – heinob
    Oct 14, 2012 at 8:26

Not the answer you're looking for? Browse other questions tagged .