tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andoni" <and...@indigo.ie>
Subject Re: How can I run tomcat on port 8080 and have the users think it's on port 80?
Date Fri, 06 Jun 2003 14:56:43 GMT
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" <michael.mattox@verideon.com>
To: "Xavier Ambrosioni" <xavier.ambrosioni@st.com>;
<tomcat-user@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


Mime
View raw message