You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Susan G. Conger" <co...@yoeric.com> on 2008/04/17 18:21:50 UTC

redirect port 80 to application server

I am not sure if this is the right list for this.  But I have an Apache HTTP
server front end and I want to redirect port 80 so that it goes to port
8080.  

 

Thanks,

Susan

 

===========================================================================

Susan G. Conger
Custom Windows & Macintosh Development

President
Web Site Design & Development

YOERIC Corporation
Database Design & Development

256 Windy Ridge Road

Chapel Hill, NC  27517

Phone/Fax: (919)542-0071

congers@yoeric.com

www.yoeric.com

 


Re: redirect port 80 to application server

Posted by David Smith <dn...@cornell.edu>.
Seems to me there are two options. 

1. Use mod_jk to send everything back to Tomcat.  Httpd just acts as a 
middle man passing stuff back and forth.

2. Use mod_rewrite and mod_proxy to setup a reverse proxy, still passing 
everything back and forth.  If doing it this way, Tomcat's connector 
needs the proxyName and proxyPort attributes defined.

--David

Susan G. Conger wrote:

>I have to have the Apache HTTP in front.  Don't want it there but it is
>required by the customer.  So they type in http://myserver/webapp and expect
>it to go to the application server.  I say just use the port
>http://myserver:8080/webapp and you will get to the application server.
>They say we don't want to type in the port just make 80 redirect to the
>application server port.  So, I am here trying to figure out the easiest way
>to redirect all traffic from 80 to 8080 and still have the apache running in
>front.  Should I use remote proxies?
>
>Thanks,
>Susan  
>
>-----Original Message-----
>From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com] 
>Sent: Thursday, April 17, 2008 12:26 PM
>To: Tomcat Users List
>Subject: RE: redirect port 80 to application server
>
>  
>
>>From: Susan G. Conger [mailto:congers@yoeric.com] 
>>Subject: redirect port 80 to application server
>>
>>But I have an Apache HTTP server front end and I want 
>>to redirect port 80 so that it goes to port 8080.  
>>    
>>
>
>If by the above you mean you want to send all port 80 requests through
>to Tomcat on port 8080, why are you bothering with httpd at all?  Just
>take it out and configure Tomcat to use port 80.
>
>Or maybe you need to supply more information...
>
> - 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
>
>
>
>
>---------------------------------------------------------------------
>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
>
>  
>


---------------------------------------------------------------------
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 port 80 to application server

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Susan G. Conger [mailto:congers@yoeric.com] 
> Subject: RE: redirect port 80 to application server
> 
> I have to have the Apache HTTP in front.  Don't want it there 
> but it is required by the customer.

To what end?  I've never heard of a customer saying "you have to use
product xyz, even if it serves no purpose".  If http does have some
purpose in this environment, what is it?  If it's nothing more than a
forwarding mechanism, it's doing nothing other than wasting CPU and RAM.

Assuming httpd is doing something useful, then use mod_proxy or mod_ajp
to pass requests to Tomcat:
http://tomcat.apache.org/connectors-doc/

If httpd is just there for show, configure it to use some oddball port
and Tomcat to use port 80.

 - 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


RE: redirect port 80 to application server

Posted by Peter Crowther <Pe...@melandra.com>.
> From: Susan G. Conger [mailto:congers@yoeric.com]
> I have to have the Apache HTTP in front.  Don't want it there
> but it is required by the customer.

OK.  If it's *in front*, then you'll need httpd ("Apache HTTP") to proxy for you by some means.

> I say just use the port
> http://myserver:8080/webapp and you will get to the
> application server.

At that point httpd is not "in front" of Tomcat - Tomcat's serving the content directly to the browser.  Is that acceptable to the client?

> They say we don't want to type in the port just make 80
> redirect to the application server port.

$customer needs to be clear what they want.  Do they want:

- The browser communicating via httpd to Tomcat for all requests;

- The browser communicating directly with Tomcat for Tomcat-related requests;

- Don't care as long as it works;

- Don't care as long as it adheres to our security policies?

> So, I am here trying to figure out
> the easiest way
> to redirect all traffic from 80 to 8080 and still have the
> apache running in
> front.  Should I use remote proxies?

The "classic" way of doing that is to use mod_jk in httpd, and an AJP connector in Tomcat.  You don't specify which Tomcat version you're on, so it's kinda hard to point you to the correct version of the docs for that :-).

                - Peter

---------------------------------------------------------------------
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 port 80 to application server

Posted by Antonio Vidal Ferrer <an...@globalia-sistemas.com>.
Susan:

Is the aplication server a Tomcat? If so, you can use mod_jk. If not, may be
you will need to use mod_proxy.

Toni.

-----Original Message-----
From: Susan G. Conger [mailto:congers@yoeric.com] 
Sent: jueves, 17 de abril de 2008 18:34
To: 'Tomcat Users List'
Subject: RE: redirect port 80 to application server

I have to have the Apache HTTP in front.  Don't want it there but it is
required by the customer.  So they type in http://myserver/webapp and expect
it to go to the application server.  I say just use the port
http://myserver:8080/webapp and you will get to the application server.
They say we don't want to type in the port just make 80 redirect to the
application server port.  So, I am here trying to figure out the easiest way
to redirect all traffic from 80 to 8080 and still have the apache running in
front.  Should I use remote proxies?

Thanks,
Susan  

-----Original Message-----
From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com] 
Sent: Thursday, April 17, 2008 12:26 PM
To: Tomcat Users List
Subject: RE: redirect port 80 to application server

> From: Susan G. Conger [mailto:congers@yoeric.com] 
> Subject: redirect port 80 to application server
> 
> But I have an Apache HTTP server front end and I want 
> to redirect port 80 so that it goes to port 8080.  

If by the above you mean you want to send all port 80 requests through
to Tomcat on port 8080, why are you bothering with httpd at all?  Just
take it out and configure Tomcat to use port 80.

Or maybe you need to supply more information...

 - 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




---------------------------------------------------------------------
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


---------------------------------------------------------------------
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 port 80 to application server

Posted by "Susan G. Conger" <co...@yoeric.com>.
I have to have the Apache HTTP in front.  Don't want it there but it is
required by the customer.  So they type in http://myserver/webapp and expect
it to go to the application server.  I say just use the port
http://myserver:8080/webapp and you will get to the application server.
They say we don't want to type in the port just make 80 redirect to the
application server port.  So, I am here trying to figure out the easiest way
to redirect all traffic from 80 to 8080 and still have the apache running in
front.  Should I use remote proxies?

Thanks,
Susan  

-----Original Message-----
From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com] 
Sent: Thursday, April 17, 2008 12:26 PM
To: Tomcat Users List
Subject: RE: redirect port 80 to application server

> From: Susan G. Conger [mailto:congers@yoeric.com] 
> Subject: redirect port 80 to application server
> 
> But I have an Apache HTTP server front end and I want 
> to redirect port 80 so that it goes to port 8080.  

If by the above you mean you want to send all port 80 requests through
to Tomcat on port 8080, why are you bothering with httpd at all?  Just
take it out and configure Tomcat to use port 80.

Or maybe you need to supply more information...

 - 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




---------------------------------------------------------------------
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 port 80 to application server

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Susan G. Conger [mailto:congers@yoeric.com] 
> Subject: redirect port 80 to application server
> 
> But I have an Apache HTTP server front end and I want 
> to redirect port 80 so that it goes to port 8080.  

If by the above you mean you want to send all port 80 requests through
to Tomcat on port 8080, why are you bothering with httpd at all?  Just
take it out and configure Tomcat to use port 80.

Or maybe you need to supply more information...

 - 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