Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Title is basically it. I have tomcat running on localhost:8080 and I'm attempting to use IIS 7 with ARR to reverse proxy to it, which half works. The request is getting to tomcat but with the Host header of 127.0.0.1:8080, which the servlet is complaining about.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

ARR does a reverse proxy request to the target Server Farm, which is localhost:8080 in your case. When it does, it writes the original server variables into HTTP_X_?? variables.

From tomcat, you will need to rewrite those variables back into the original locations if you want to ensure that applications on tomcat are affected by the reverse proxy affect. If your site was IIS7, you could use the ARR Helper which does that for you, but since you're not using IIS, you'll need to handle that manually yourself.

share|improve this answer
    
Yeah, I was hoping this weren't the case, but it turned out the Java changes were pretty simple. –  Jeff Mc Apr 5 '10 at 16:37
    
Great. Glad you were able to figure it out so readily. –  Scott Forsyth - MVP Apr 5 '10 at 20:16

Your Answer

 
discard

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.