Redirecting Local Hostname to Full Jira URL on Tomcat

Running Jira 4.4.4 on Tomcat, the ‘jira/’ URL behaves as ‘jira.company.com’. Can I redirect directly via server.xml/web.xml without using 301 redirects or mod_jk to enforce the proper domain? Thanks.

I dealt with a similar setup on a project where determining the best method of redirection was quite challenging. In my experience, direct manipulation of server.xml alone wasn’t sufficient without some help from web.xml to ensure proper mapping. Instead of using external modules like mod_jk, I managed to implement a lightweight filter within the application itself that rewrites the host header as needed. Although this might not be the most elegant solution, it allowed for fine-tuning the behavior without resorting to external 301 redirects.