Thank you Bartosz,
I've tried out, it works, you helped me alot :)
All the best,
Igor
----- Original Message -----
From: "Bartosz Oudekerk" <[EMAIL PROTECTED]>
To: "Hippo CMS development public mailinglist"
<[email protected]>
Sent: Tuesday, June 17, 2008 5:44 PM
Subject: Re: [HippoCMS-dev] How to get exact internet address
Igor Salma wrote:
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.
Apache will set the X-Forwarded-Host & X-Forwarded-Port headers if
you're using mod_proxy.
Regards,
--
Bartosz Oudekerk
.---------------------------------.-----------------------------------.
| Hippo B.V. | Hippo USA Inc. |
| Oosteinde 11 | 101 H Street, suite Q Petaluma CA |
| 1017 WT Amsterdam | 94952-3329 San Francisco |
| The Netherlands | United States |
| Tel +31 (0)20 5224466 | +1 (707) 773-4646 |
+---------------------------------+-----------------------------------+
| [EMAIL PROTECTED] | http://www.onehippo.com |
`---------------------------------^-----------------------------------'
********************************************
Hippocms-dev: Hippo CMS development public mailinglist
********************************************
Hippocms-dev: Hippo CMS development public mailinglist
Searchable archives can be found at:
<a href="http://hippocms-dev.markmail.org/">MarkMail</a> and <a
href="http://www.nabble.com/Hippo-CMS-f26633.html">Nable</a>.