You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jean-Sebastien Pilon <js...@PENSON.CA> on 2007/03/06 23:39:17 UTC

Redirect question

Hello,

I am migrating an application to a new server. The web application is
installed on the new server, I still need to serve it on port 8080 since
some users are using it like this. But I also need to serve it on port
80. On the old server, apache was installed to redirect to
http://hostname:8080/. I wish to get rid of apache from the design, is
there any way I can set it up so it listens on port 80 and redirects to
8080 ? 

Thanks.

NOTICE: This email contains privileged and confidential information and is intended only for the individual to whom it is addressed. If you are not the named addressee, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this transmission by mistake and delete this communication from your system. E-mail transmission cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. 

AVIS: Le pr�sent courriel contient des renseignements de nature privil�gi�e et confidentielle et n�est destin� qu'� la personne � qui il est adress�. Si vous n��tes pas le destinataire pr�vu, vous �tes par les pr�sentes avis�s que toute diffusion, distribution ou reproduction de cette communication est strictement interdite.� Si vous avez re�u ce courriel par erreur, veuillez en aviser imm�diatement l�exp�diteur et le supprimer de votre syst�me. Notez que la transmission de courriel ne peut en aucun cas �tre consid�r� comme inviolable ou exempt d�erreur puisque les informations qu�il contient pourraient �tre intercept�s, corrompues, perdues, d�truites, arriv�es en retard ou incompl�tes ou contenir un virus. �

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Redirect question - SOLVED

Posted by Jean-Sebastien Pilon <js...@PENSON.CA>.
Thanks, the connector did it for me.

> -----Original Message-----
> From: Caldarale, Charles R
> Sent: Tuesday, March 06, 2007 5:44 PM
> To: Tomcat Users List
> Subject: RE: Redirect question
> 
> > From: Jean-Sebastien Pilon
> > Subject: Redirect question
> > 
> > I wish to get rid of apache from the design, is
> > there any way I can set it up so it listens on 
> > port 80 and redirects to 8080 ? 
> 
> Just duplicate your existing <Connector> in server.xml and change to
> port to 80.  It's fine to have more than one <Connector> per <Engine>.
> 
> If you're using UNIX/Linux, you could use iptables to do the
> redirection.  
> 
>  - Chuck
> 
> 

NOTICE: This email contains privileged and confidential information and is intended only for the individual to whom it is addressed. If you are not the named addressee, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this transmission by mistake and delete this communication from your system. E-mail transmission cannot be guaranteed to be secured or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. 

AVIS: Le pr�sent courriel contient des renseignements de nature privil�gi�e et confidentielle et n�est destin� qu'� la personne � qui il est adress�. Si vous n��tes pas le destinataire pr�vu, vous �tes par les pr�sentes avis�s que toute diffusion, distribution ou reproduction de cette communication est strictement interdite.� Si vous avez re�u ce courriel par erreur, veuillez en aviser imm�diatement l�exp�diteur et le supprimer de votre syst�me. Notez que la transmission de courriel ne peut en aucun cas �tre consid�r� comme inviolable ou exempt d�erreur puisque les informations qu�il contient pourraient �tre intercept�s, corrompues, perdues, d�truites, arriv�es en retard ou incompl�tes ou contenir un virus. �

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Redirect question

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Jean-Sebastien Pilon [mailto:jspilon@PENSON.CA] 
> Subject: Redirect question
> 
> I wish to get rid of apache from the design, is
> there any way I can set it up so it listens on 
> port 80 and redirects to 8080 ? 

Just duplicate your existing <Connector> in server.xml and change to
port to 80.  It's fine to have more than one <Connector> per <Engine>.

If you're using UNIX/Linux, you could use iptables to do the
redirection.  

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org