request.getHeader("Host") returns wrong host name

O

Orpheus66

We've deployed a website on a server exposed to the internet through
our firewall. IIS handles the pass-off to Resin 2.0.4, and has worked
flawlessly on other applications configured the same way.

The problem is for some reason when we come into the site externally
from a URL like this: http://externaldomain.com/app

Every place in the code that does a request.getHeader("Host") returns
"internalmachinename" instead of "externaldomain.com"

Has anyone seen this before? Because a servlet we use depends on the
fully qualified URL, we need to be able to grab the correct host when
constructing some links.

Thanks in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top