Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Java (http://www.velocityreviews.com/forums/f30-java.html)
-   -   request.getHeader("Host") returns wrong host name (http://www.velocityreviews.com/forums/t125010-request-getheader-host-returns-wrong-host-name.html)

Orpheus66 07-30-2003 02:59 PM

request.getHeader("Host") returns wrong host name
 
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.


All times are GMT. The time now is 11:48 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57