Invalid URL Links on Apache Reverse Proxy
On a JIRA instance using Apache Web Server, some links contain the actual host name and port the application is running on, rather than JIRA's configured Server Base URL. This can cause the links to be unreachable because of intervening firewalls or DNS resolution configurations as the BaseURL matches the VirtualHost alias of the presentation proxy.
For example, the base URL is
but link URLs point to
This is usually caused by the
VirtualHost configuration section in Apache httpd does not specify the
ProxyPreserveHost directive. This would instruct Apache to relay requests towards the internal server using the hostname provided by the client. This in turn will provide Tomcat with the correct DNS name for the
ServletRequest.getServerName method used by JIRA to build URL links in the generated HTML response.
This JIRA documentation page configuring mod_proxy provides a working example of a configuration enabling the required
Was this helpful?
Thanks for your feedback!