tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simão Fontes <>
Subject Re: changing server name in HTTP request
Date Thu, 15 Jul 2010 16:50:51 GMT
Hello James,

First of all you have to consider reading online documentation before
asking questions to the mailing lists.

inline responses

James Godrej wrote:
> I am having a website which is being served on my LAN as 
>  the vhost configuration for this is 
> <VirtualHost *:80>
> ServerAdmin webmaster@localhost
>  ServerName 
> ProxyRequests Off 
>          <Proxy *>
>         Order deny,allow
>         Allow from all
>         </Proxy>
> ProxyPreserveHost On 
> ProxyPass / http://localhost:9090/ 
> ProxyPassReverse / http://localhost:9090/ 
> </VirtualHost >
> it is working very fine on LAN. I am able to use my application completely from 
> LAN.
> There is another server which is having public IP and I want this website to be 
> available on internet.
> A request for public domain comes as
You should put a proxypass rule defining the address
Like this: ProxyPass /something http://tomcatserver:9090/
> How do I transfer that internally so that it reaches or is being served by 
> Is it possible to change the ServerName of an HTTP Request in Apache2 
> if yes then how?
You need to set the proxy directive on server.xml

<Connector port="8081" ...

Best regards

Arquivo da Web Portuguesa | FCCN
Av. do Brasil, n.º 101
1700-066 Lisboa 
Tel.: +351 21 8440100 (facultativo) Fax: +351 21 8472167 |

Aviso de Confidencialidade
Esta mensagem é exclusivamente destinada ao seu destinatário, podendo conter informação
CONFIDENCIAL, cuja divulgação está expressamente vedada nos termos da lei. Caso tenha recepcionado
indevidamente esta mensagem, solicitamos-lhe que nos comunique esse mesmo facto por esta via
ou para o telefone +351 218440100 devendo apagar o seu conteúdo de imediato. This message
is intended exclusively for its addressee. It may contain CONFIDENTIAL information protected
by law. If this message has been received by error, please notify us via e-mail or by telephone
+351 218440100 and delete it immediately.

View raw message