I've seen this issue before when mod_proxy was being used.  Switching to
mod_jk passed through the client's IP address.

Orde


On Tue, 2008-06-17 at 17:22 +0200, 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

Orde Saunders
Systems Analyst
mform
phone 0131 556 4845
fax 0131 556 4846
mobile 077 111 84 565
www.mform.co.uk

mortgage partner to www.thisismoney.co.uk

---------------------------------------------------------------------------------------------
 
Finalist in the Scottish Financial Enterprise Innovators Awards 2007
---------------------------------------------------------------------------------------------

? Protect the environment. Think carefully before printing this e-mail

Disclaimer:

This communication is from mform Holdings Limited, which may be privileged and 
confidential. 
The information is intended to be for the use of the individual(s) or entity 
named in the address list above. 
If you are not the intended recipient, be aware that any disclosure, copying, 
distribution or use of the contents of this information is prohibited. 
If you have received this electronic message in error, please notify us by 
telephone or e-mail (to the number or address above) immediately. 
Opinions, conclusions and other information in this message that do not relate 
to the official business of mform and shall be understood as neither given nor 
endorsed by it. 
Whilst we have taken reasonable precautions to ensure that this e-mail and any 
attachment has been checked for viruses, 
we cannot guarantee that they are virus free and we cannot accept liability for 
any damage sustained as a result of software viruses. 
We would advise that you carry out your own virus checks, especially before 
opening an attachment. 

Visit the mform website at www.mform.co.uk

mform Holdings Limited is registered in Scotland with registered number 
SC313032 and its registered address is at 3A Dublin Meuse, Edinburgh, EH3 6NW.

mform Holdings Limited includes the following company: mform.co.uk, registered 
in England and Wales, company no. 3919342 Registered office: Ewshot Hall 
Cottage, Heath Lane, Ewshot, Farnham, Surrey, GU10 5AL 

mform.co.uk Limited is Authorised & Regulated by the Financial Service 
Authority 

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

Reply via email to