Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using embedded tomcat 7 behind a iis 7.5 proxy server, with requests being forwarded to tomcat with arr.

Everything works fine unless iis is set to require ssl.

Then things like links that are generated dynamically in .jsp files on tomcat don't work right. For example if a link is supposed to point to it will be written as (8080 is the port tomcat is running on).

The problem seems to come from when tomcat looks at itself to build out the url it sees correctly that it is running on, but I need it to think otherwise.

Does anybody know how to accomplish this without using ssl between iis and tomcat?

share|improve this question

This problem is due to Tomcat not knowing the actual external URL of the application. When the application redirects to a relative URL, the Servlet add the full absolute URL to Location (as required).

If you are using HTTP between IIS and Tomcat, Tomcat thinks you are using HTTP and generates http://... absolute URL.

The solution is not using HTTP (nor HTTPS) between IIS and Tomcat.
You should use AJP13 protocol and the Tomcat-ISAPI Redirector on IIS.
Here is the official Tomcat+IIS how to.

Using Apache as proxy you could use HTTP for proxying, but you need configure Apache's mod_proxy and tell Tomcat it is behind a proxy. Here is a how to on that process.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.