Michael Remijan: Apache 2 ProxyPassReverse URL Replacement
t is very common to use Apache virtual hosts as a proxy to get to other application servers running in your environment. I have such a setup with Jira for my open source projects. I have Jira for my open source projects at this URL: http://ferris-jira.ddns.net. This domain name gets resolved to my server, hits an Apache virtual host for that domain, then ProxyPasses the requests along to the Jira instance. The response from Jira gets ProxyPassReversed back through Apache and to the user's browser. This works fine, as long as links generated by the application are all relative.Unfortunately, Jira generates some fully-qualified links which started with http://localhost:8080. Once this fully-qualified link gets to the user's browser it obviously won't work. To solve this problem I used a combination of different Apache directives to search through the response from Jira and replace any of the localhost URLs. Let's take a look.
Read full article from Michael Remijan: Apache 2 ProxyPassReverse URL Replacement
No comments:
Post a Comment