RE: How can I run tomcat on port 8080 and have the users think it's on port 80?
But this site doesn't contain any detail configuration. -Original Message- From: Andoni [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 10:57 PM To: Tomcat Users List; [EMAIL PROTECTED] 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" <[EMAIL PROTECTED]> To: "Xavier Ambrosioni" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED] > > Sent: Friday, June 06, 2003 2:17 PM > > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > > 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 > > > > > > > > [EMAIL PROTECTED] 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: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > -- > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can I run tomcat on port 8080 and have the users think it's on port 80?
One way to fake it is to have your users access a page on the web server that just "frames" the URL to Tomcat, hiding the real address and the fact that it's running on port 8080. I do this in a couple situations and it works out quite well--also provides a single entry point to the web application. Scott Reynolds --- Michael Mattox <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can I run tomcat on port 8080 and have the users think it's on port 80?
Option 1: Apache plus a connector, either JK (mod_jk) or JK2 (mod_jk2) Option 2: Apache + mod_proxy The preference is for Option 1, you are welcome to use whatever works. John On Fri, 6 Jun 2003 11:33:20 +0200, Michael <[EMAIL PROTECTED]> 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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" <[EMAIL PROTECTED]> To: "Xavier Ambrosioni" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED] > > Sent: Friday, June 06, 2003 2:17 PM > > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > > 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 > > > > > > > > [EMAIL PROTECTED] 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: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > -- > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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:[EMAIL PROTECTED] > Sent: Friday, June 06, 2003 2:17 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > 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 > > > > [EMAIL PROTECTED] 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: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can I run tomcat on port 8080 and have the users think it's on port 80?
Am Freitag, 6. Juni 2003 14:08 schrieb Michael Mattox: > 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. Here is my experience with this topic: http://www.klawitter.de/tomcat80.html Mit freundlichem Gruß / With kind regards Holger Klawitter -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can I run tomcat on port 8080 and have the users think it's on port 80?
Yes, you could, but you could just use Apache with the connectors built to already do the job. John On Fri, 06 Jun 2003 14:16:33 +0200, Xavier Ambrosioni <[EMAIL PROTECTED]> wrote: 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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can I run tomcat on port 8080 and have the users think it's on port 80?
You might find this useful. Skip to near the bottom. http://server.ccl.net/cca/software/UNIX/apache/tomcat4.1.18-linux/README.shtml cheers! Dom - Original Message - From: Michael Mattox To: Tomcat Users List Sent: Friday, June 06, 2003 2:08 PM Subject: How can I run tomcat on port 8080 and have the users think it's on port 80? 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]