Tomcat ProxyName to redirect to FQDN

Paul Stahlke
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 29, 2011
Hi, I've setup Tomcat to redirect using proxyName in the Connector to redirect to the name specified - this is working fine on the name alone. The problem is when I give a link to a specific page, i.e. http://10.0.0.5/browse/ISSUEKEY-5 the redirect to http://example.com/browse/ISSUEKEY-5 does not happen. It only works on the base address alone.

Is there something else that needs to be changed in server.xml to handle redirects to URLs with specific paths?

1 answer

1 vote
EddieW
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 20, 2011

Are you saying that http://10.0.0.5/browse/ISSUEKEY-5 doesn't load, or just shows the IP in the URL address bar?

the proxy config in the connector is not for URL rewriting, it is to integrate tomcat with a reverse proxy like apache. The goal being that someone can hit either

foo.com/jira/browse/issue-4 OR

10.1.1.1/jira/browse/issue-4

and the proxy will hand it off to tomcat using a port instead

localhost:8080/jira/browse/issue-4

And the proxy value in the connector tells jira that although it sees the request coming to port 8080 on localhost it should treat it as port 80 on domain.url and use that in any response.

http://confluence.atlassian.com/display/JIRA/Integrating+JIRA+with+Apache

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events