Re: Apache Tomcat Virtual Host question
Hi, I asked this question yesterday and got no hints from anyone. Since then, I have been able to accomplish what I want using multiple instances of Tomcat. However, I would much rather use one instance and serve requests on different Apache port. Does anyone have ANY comments regarding my issue? Thanks in advance. Aria. On Wed, 05 Oct 05 13:25:38 -0400 Aria Bamdad said: Hi, Sorry if this has been asked before but I can't find any such example.. I have Apache talking to Tomcat and everything works fine. My situation is as follows: I am using Apache VirtualHost directive to set different document roots depending on the PORT number the request comes in. So, I am not really interested in the host name part of the URL, I am more interested in the port number. I have 3 different document roots depending on the port. One for port 80 http requests, one for port 443 https requests and another for port 88 http. Each document root has it's set of subdirectories. The subdirectories contain static and jsp content and you **CAN** have the same directory name under each of the three different document roots. For example: I can have /www/port80/project1 and /www/port443/project1 but they contain different information. How do I configure Apache and Tomcat so that when Apache receives a request on a specific port, it will pass that along to Tomcat, AND, how do I configure Tomcat so that it servs the correct 'project1' application under the correct document root? Thanks inadvance. Aria. - 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: Apache Tomcat Virtual Host question
Aria Bamdad wrote: Hi, I asked this question yesterday and got no hints from anyone. Since then, I have been able to accomplish what I want using multiple instances of Tomcat. However, I would much rather use one instance and serve requests on different Apache port. Does anyone have ANY comments regarding my issue? Well, having different presentations by using different port numbers is not a common practice these days, since Apache has Name-based VHosts. Similarely, Tomcat supports Name-based VHosts only (unless I am greatly mistaken). So, it would appear that your solution is the only applicable one. The best choice is, of course, to go for name based VHosts, since it integrates very well and makes your URLs look nice. BTW, 443 is HTTPS port, which is different story. So, save yourself a lot of trouble and go for unified VHosts. One observation, though - with multiple instances of TC you have greater robustness. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache Tomcat Virtual Host question
Nikola, Thank you very much for you good comments. I agree that port based servers are not common. The reason we use them is for separating for example internal web sites and external public web sites. Using host name based virtual hosting, you have to give a different host name to each port. For example if you were serving http and https on the same host www.company.com, you now have to use secure.company.com for your port 443 and www.company.com for your port 80. I just wanted to see if there is a way to just use www.company.com and have Tomcat see the port too. Thanks again. Aria On Thu, 06 Oct 2005 15:33:15 +0200 you said: Aria Bamdad wrote: Hi, I asked this question yesterday and got no hints from anyone. Since then, I have been able to accomplish what I want using multiple instances of Tomcat. However, I would much rather use one instance and serve requests on different Apache port. Does anyone have ANY comments regarding my issue? Well, having different presentations by using different port numbers is not a common practice these days, since Apache has Name-based VHosts. Similarely, Tomcat supports Name-based VHosts only (unless I am greatly mistaken). So, it would appear that your solution is the only applicable one. The best choice is, of course, to go for name based VHosts, since it integrates very well and makes your URLs look nice. BTW, 443 is HTTPS port, which is different story. So, save yourself a lot of trouble and go for unified VHosts. One observation, though - with multiple instances of TC you have greater robustness. Nix. - 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]
Apache Tomcat Virtual Host question
Hi, Sorry if this has been asked before but I can't find any such example.. I have Apache talking to Tomcat and everything works fine. My situation is as follows: I am using Apache VirtualHost directive to set different document roots depending on the PORT number the request comes in. So, I am not really interested in the host name part of the URL, I am more interested in the port number. I have 3 different document roots depending on the port. One for port 80 http requests, one for port 443 https requests and another for port 88 http. Each document root has it's set of subdirectories. The subdirectories contain static and jsp content and you **CAN** have the same directory name under each of the three different document roots. For example: I can have /www/port80/project1 and /www/port443/project1 but they contain different information. How do I configure Apache and Tomcat so that when Apache receives a request on a specific port, it will pass that along to Tomcat, AND, how do I configure Tomcat so that it servs the correct 'project1' application under the correct document root? Thanks inadvance. Aria. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]