> -----Original Message----- > From: Ahmed Dalatony [mailto:ahmed.dalat...@gmail.com] > Sent: Sunday, March 09, 2014 2:16 PM > To: Tomcat Users List > Subject: Re: simple way to access application in multi instance > envirnoment > > On Sun, Mar 9, 2014 at 7:48 PM, Neven Cvetkovic > <neven.cvetko...@gmail.com>wrote: > > > On Sun, Mar 9, 2014 at 11:29 AM, Ahmed Dalatony > > <ahmed.dalat...@gmail.com > > >wrote: > > > > > On Sun, Mar 9, 2014 at 5:05 PM, Neven Cvetkovic > > > <neven.cvetko...@gmail.com>wrote: > > > > > > > Ahmed, > > > > > > > > On Sun, Mar 9, 2014 at 10:14 AM, Ahmed Dalatony < > > > ahmed.dalat...@gmail.com > > > > >wrote: > > > > > > > > > hello, > > > > > > > > > can you help me little more with example or simpler doc > > > > > i'm new to tomcat config > > > > > and i don't understand virtual host > > > > > > > > > > thank you > > > > > > > > What environment do you use? e.g. Windows, Linux, etc. > > If Linux, what flavour of Linux? e.g. RHEL (CentOS, Fedora), Ubuntu, > etc. > > What webserver would you like to use? e.g. Apache HTTPD, IIS, nginx, > etc. > > > > They all have different ways to configure your setup. > > > > - The easier one to setup is to use mod_proxy, check examples here: > > https://tomcat.apache.org/tomcat-7.0-doc/proxy-howto.html > > > > - More common is to use AJP protocol and mod_jk in Apache, check > > examples > > here: > > http://tomcat.apache.org/connectors-doc/generic_howto/quick.html > > http://tomcat.apache.org/connectors-doc/reference/apache.html > > > > Hope that helps. > > n. > > > > hello, > I'm using win server 2008 running a combination of tomcat 6, tomcat 7, > oc4j 10g on different ports the resources you supplied are very handy > but they explain accessing http://www.myhost.com:8888/App1 from > http://www.myhost.com/App1 > is it applicable to be accessed from URL like this > http://App1.myhost.com > > thanks, If you really want the last URL style, http://app.mydomain.com/, then you can do it with any of the alternatives Neven mentioned, except Alt_0. For Alt_1 and Alt_2, once you set up the <Host> tags, you set up each App as the ROOT context. Hint: It's best to view this as setting up a single host to do one app as ROOT, and then just apply it to multiple <Hosts>. For Alt_2, you can assign multiple IPs to a single network interface in Windows, in case you have a limited number of physical ports. With your explanation of your current setup, I'd say you'd want either Alt_2 or Alt_3. For Alt_2, it's just reconfiguring your server.xml files to specify the address= parameter on the <Connector> tag, and set the port to 80, with each Tomcat getting a unique IP. Alt_3 can be accomplished without modifying your current Tomcats, or not modifying them by much, and offers a little more flexibility, but you have a learning curve ahead of you on configuring the Apache HTTPd server appropriately. However, it would give you the option of adding additional Tomcats for an app with the httpd server acting as a load balancer if you find you need additional capacity for that one app. Of course, don't forget the DNS mapping of the new hostnames to IP addresses. I do this all the time in my environment, and actually have servers setup in a combined Alt_1 & Alt_2 environment. That is, multiple Tomcat instances, some dedicated to a specific host, some using virtual hosting, all on the same server. Jeff
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org