You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by John Turner <to...@johnturner.com> on 2003/06/09 14:33:43 UTC

Re: How can I run tomcat on port 8080 and have the users think it 's on port 80?

Actually, it does.

Other resources:

http://www.johnturner.com/howto
http://tomcatfaq.sourceforge.net

John

On Mon, 9 Jun 2003 14:23:28 +0800, Lee Chin Khiong <le...@cmks.com.sg> 
wrote:

>
> But this site doesn't contain any detail configuration.
>
>
> -----Original Message-----
> From: Andoni [mailto:andoni@indigo.ie]
> Sent: Friday, June 06, 2003 10:57 PM
> To: Tomcat Users List; michael.mattox@verideon.com
> Subject: Re: How can I run tomcat on port 8080 and have the users think
> it's on port 80?
>
>
> Forget mod_rewrite.  You just have to use the AJP Connector that is 
> supplied
> with Tomcat to connect it to Apache and have apache work on port  80.
>
> http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html
>
> Surf about a bit to find the correct version for you if you are not 
> running
> Tomcat 4.0.
>
> If there is something preventing you from using this connector tell the 
> list
> about it and we'll see what we can do ;-)
>
> Enjoy,
>
> Andoni.
>
> ----- Original Message -----
> From: "Michael Mattox" <mi...@verideon.com>
> To: "Xavier Ambrosioni" <xa...@st.com>;
> <to...@jakarta.apache.org>
> Sent: Friday, June 06, 2003 2:34 PM
> Subject: RE: How can I run tomcat on port 8080 and have the users think 
> it's
> on port 80?
>
>
>> We have this working for incoming requests, the problem we're having is
> the
>> website uses relative links.  Since tomcat is running on port 8080, a
>> relative link has port 8080 in it.  Apparently Apache isn't rewriting 
>> this
>> before it's sent back to the client, and port 8080 shows up in the
> client's
>> browser.
>>
>> Is Apache's mod_rewrite supposed to handle this?  Perhaps we haven't set
> it
>> up properly??
>>
>> Thanks,
>> Michael
>>
>>
>> > -----Original Message-----
>> > From: Xavier Ambrosioni [mailto:xavier.ambrosioni@st.com]
>> > Sent: Friday, June 06, 2003 2:17 PM
>> > To: tomcat-user@jakarta.apache.org; michael.mattox@verideon.com
>> > Subject: Re: How can I run tomcat on port 8080 and have the users 
>> think
>> > it's on port 80?
>> >
>> >
>> > You can use the mod_rewrite module in apache to rewrite and redirect 
>> URL
>> > from port 80 to port 8080.
>> > With this module, apache can be used as a proxy that only redirect 
>> urls
>> > to the right port.
>> >
>> >
>> > Xavier
>> >
>> >
>> >
>> > michael.mattox@verideon.com wrote:
>> > >
>> > > I'd like to run Tomcat on port 80 but I don't want to run it as
>> > root.  Is it
>> > > possible to run it on 8080 yet have the users access it via port 80?
> My
>> > > admin has set it up this way but the problem is all relative
>> > links in my app
>> > > show up as :8080.  So once the user clicks on a link they see
>> > 8080 from then
>> > > on.
>> > >
>> > > Thanks,
>> > > Michael Mattox
>> > >
>> > > --
>> > > This E-mail is confidential.  It may also be legally
>> > privileged.  If you are
>> > > not the addressee you may not copy, forward, disclose or use
>> > any part of it.
>> > > If you have received this message in error, please delete it
>> > and all copies
>> > > from your system and notify the sender immediately by return E-mail.
>> > > Internet communications cannot be guaranteed to be timely,
>> > secure, error or
>> > > virus-free.  The sender does not accept liability for any
>> > errors or omissions.
>> > >
>> > > --------------------------------------------------------------------- 
>>
>>
>> > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> > > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>> >
>>
>>
>>
>> --
>> This E-mail is confidential.  It may also be legally privileged.  If you
> are
>> not the addressee you may not copy, forward, disclose or use any part of
> it.
>> If you have received this message in error, please delete it and all
> copies
>> from your system and notify the sender immediately by return E-mail.
>> Internet communications cannot be guaranteed to be timely, secure, error
> or
>> virus-free.  The sender does not accept liability for any errors or
> omissions.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org