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? |
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.