Hi Igor,

You can try to set the ProxyPreserveHost option in Apache:

http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypreservehost

Regards,
Bart

Igor Salma wrote:
Hi all,

Can someone help me with this. The site that I working on is
configured to work on Tomcat with the Apache as web server in front
of it. I have the problem when in my jsp page try to get server name with:
request.getServerName()

I'm getting "localhost", can anyone tell how can I get the server name
that user wrote in his browser. I need this cause when someone register
for mailing list he needs to get mail with confirmation link.

Thanks,
Igor Salma

********************************************
Hippocms-dev: Hippo CMS development public mailinglist



--
Hippo B.V.  -  Amsterdam
Oosteinde 11, 1017 WT, Amsterdam, +31(0)20-5224466

Hippo USA Inc.  -  San Francisco
101 H Street, Suite Q, Petaluma CA, 94952-3329, +1 (707) 773-4646
-----------------------------------------------------------------
http://www.onehippo.com   -  [EMAIL PROTECTED]
-----------------------------------------------------------------
********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Reply via email to