RE: create a new port in tomcat
Howdy, Add a connector for the port you want. Add a context element for the webapp you want. Restart server. That's it ;) All your contexts will be accessible on all your connectors. If you want a context that will be accessible only on a given port, one possible option is to include a request filter in that context that rejects all requests not coming from a given port. Yoav Shapira Millennium ChemInformatics -Original Message- From: Serdar BOZDAG [mailto:[EMAIL PROTECTED]] Sent: Saturday, July 13, 2002 7:30 AM To: tomcatGroup Subject: create a new port in tomcat hello, i need to open a new port and map a project (context) to this port. I think i will make some changes in connectors and contexts but i do not know the exact solution please help me with an example thanks in advance.. serdar -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: create a new port in tomcat
hi, actually what i want is to see to different web pages when i go www.xx.com and www.xx.com:85. (there will be two application and when i go www.xxx.com index.html of first application will be shown and when i go www.xx.com:85 the other index.html will be shown.) filtering may be a good solution but can you give an example how to make a filtering. thanks serdar - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, July 15, 2002 2:50 PM Subject: RE: create a new port in tomcat Howdy, Add a connector for the port you want. Add a context element for the webapp you want. Restart server. That's it ;) All your contexts will be accessible on all your connectors. If you want a context that will be accessible only on a given port, one possible option is to include a request filter in that context that rejects all requests not coming from a given port. Yoav Shapira Millennium ChemInformatics -Original Message- From: Serdar BOZDAG [mailto:[EMAIL PROTECTED]] Sent: Saturday, July 13, 2002 7:30 AM To: tomcatGroup Subject: create a new port in tomcat hello, i need to open a new port and map a project (context) to this port. I think i will make some changes in connectors and contexts but i do not know the exact solution please help me with an example thanks in advance.. serdar -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: create a new port in tomcat
Howdy, actually what i want is to see to different web pages when i go www.xx.com and www.xx.com:85. (there will be two application and when i go www.xxx.com index.html of first application will be shown and when i go www.xx.com:85 the other index.html will be shown.) If those are all your requirements, you're better off simply creating two separate tomcat instances. One connector each, at the ports you want. One context each with the app you want. If you need the two apps to talk on a level supported by tomcat, e.g. single sign on or crossContext stuff, then it's back to one instance of tomcat with some filtering and forwarding. filtering may be a good solution but can you give an example how to make a filtering. See here for a good intro to servlet filters: http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html Yoav Shapira Millennium ChemInformatics -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]