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]
virtual host apps in a common appBase
I set up several virtual hosts with 5.5.9, each with deployOnStartup=true (by default) and with Tomcat's webapps folder (containing all the apps) as their appBase. Each Context specified a docBase path relative to this common appBase. From inspecting the work folder I saw that *all* apps were started at *each* virtual host, which is not what I wanted. So I now have separate per-host folders each holding just one web app, plus an empty folder which I set as appBase (I dared not leave this undefined, or pointing to a nonexistent folder, and I reckoned I needed to leave deployOnStartup=true). This does what I want, but seems inelegant: can I do better? Am I missing something? Paul Singleton -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.6/111 - Release Date: 23/Sep/2005 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
virtual host doesn't load database content
Hi. I have a domain resolving to a tomcat box. I have set up a virtual host. No probs. /~ Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host Host name=albino.info appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Aliaswww.albino.info/Alias Context path= docBase=/progs/tomcat559/webapps/megaboard02 debug=0 reloadable=true /Context /Host \ That all works well. However the welcome-file or 'default page' for this site requires database access. If I set up docBase as: 'docBase=/progs/tomcat559/webapps' and try accessing the address www.albino.info/megaboard02, no probs. the database results are shown. but if I set docbase as 'docBase=/progs/tomcat559/webapps/megaboard02' and try accessing the address www.albino.info, there's no content from the database. I want to use www.albino.info as the home page without anything added. and I want it to include the database stuff. What am I doing wrong? Kind regards. Luke. -- ._.. .| .| |.|/.|_ . .|__.|_|.|\.|_ . :61 421 276 282: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: virtual host doesn't load database content
Hi. I solved this myself by placing the database resource tag in the server.xml instead of in a separate context.xml file in the META-INF directory. I don't know why that has to be that way. KR. Luke. 29Aug2005 @ 15:39 [EMAIL PROTECTED] thusly spake Hi. I have a domain resolving to a tomcat box. I have set up a virtual host. No probs. /~ Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false /Host Host name=albino.info appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Aliaswww.albino.info/Alias Context path= docBase=/progs/tomcat559/webapps/megaboard02 debug=0 reloadable=true /Context /Host \ That all works well. However the welcome-file or 'default page' for this site requires database access. If I set up docBase as: 'docBase=/progs/tomcat559/webapps' and try accessing the address www.albino.info/megaboard02, no probs. the database results are shown. but if I set docbase as 'docBase=/progs/tomcat559/webapps/megaboard02' and try accessing the address www.albino.info, there's no content from the database. I want to use www.albino.info as the home page without anything added. and I want it to include the database stuff. What am I doing wrong? Kind regards. Luke. -- ._.. .| .| |.|/.|_ . .|__.|_|.|\.|_ . :61 421 276 282: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ._.. .| .| |.|/.|_ . .|__.|_|.|\.|_ . :61 421 276 282: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Virtual Host Not Working Correctly
Hi Guys, I am setting up a Virtual Host in Tomcat, I've added the following entry in my server.xml file. Host name=q5aims.net debug=0 appBase=webapps unpackWARs=true Aliaswww.q5aims.net/Alias Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=virtual_log1. suffix=.log timestamp=true/ Context path=/q5aims_net docBase=q5aims_net debug=0 reloadable=true/ /Host However, when I test the link, it says the page cannot be found. In the directory q5aims_net I have one doc, index.html Any ideas why this isn't working? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Virtual Host Not Working Correctly
Dennis Harris wrote: I am setting up a Virtual Host in Tomcat, I've added the following entry in my server.xml file. Host name=q5aims.net debug=0 appBase=webapps unpackWARs=true/ Context path=/q5aims_net docBase=q5aims_net debug=0 reloadable=true/ /Host However, when I test the link, it says the page cannot be found. In the directory q5aims_net I have one doc, index.html Are you trying to access 'http://q5aims.net/index.html' or 'http://q5aims.net/q5aims_net/index.html' as your Context entry indicates? -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Virtual Host Not Working Correctly
Just trying to access http://q5aims.net/index.html -Original Message- From: Hassan Schroeder [mailto:[EMAIL PROTECTED] Sent: Thursday, August 25, 2005 4:04 PM To: Tomcat Users List Subject: Re: Virtual Host Not Working Correctly Dennis Harris wrote: I am setting up a Virtual Host in Tomcat, I've added the following entry in my server.xml file. Host name=q5aims.net debug=0 appBase=webapps unpackWARs=true/ Context path=/q5aims_net docBase=q5aims_net debug=0 reloadable=true/ /Host However, when I test the link, it says the page cannot be found. In the directory q5aims_net I have one doc, index.html Are you trying to access 'http://q5aims.net/index.html' or 'http://q5aims.net/q5aims_net/index.html' as your Context entry indicates? -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - 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: Virtual Host Not Working Correctly
Dennis Harris wrote: Just trying to access http://q5aims.net/index.html Context path=/q5aims_net docBase=q5aims_net debug=0 Then you should have Context path= ... -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: virtual host and JkMount with jk1.2.14
Danico Lee wrote: i got tomcat5, apache1.3 and jk1.2.14. i'm very confused with JkMount. in my http.conf, i have: VirtualHost our_server:80 ServerName our_server DocumentRoot ${tomcat_home}/webapps/test1 JkAutoAlias ${tomcat_home}/webapps JkMount /test1/* worker1 /VirtualHost if i go to http://our_server/test1/, it works. but this is not what i want. i want it to be http://test1.our_server/ instead. i got this: Mod_jk can not be used for URL rewriting. It can mount only Tomcat contexts, so you will need to use the mod_rewrite for that. It has been explained here couple of times, so dig the archive :) Regards, Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
virtual host and JkMount with jk1.2.14
i got tomcat5, apache1.3 and jk1.2.14. i'm very confused with JkMount. in my http.conf, i have: VirtualHost our_server:80 ServerName our_server DocumentRoot ${tomcat_home}/webapps/test1 JkAutoAlias ${tomcat_home}/webapps JkMount /test1/* worker1 /VirtualHost if i go to http://our_server/test1/, it works. but this is not what i want. i want it to be http://test1.our_server/ instead. i got this: VirtualHost our_server:80 ServerName test1.our_server DocumentRoot ${tomcat_home}/webapps/test1 JkMount /* worker1 /VirtualHost when i go to http://test1.our_server/, it always displays the default pages under ${tomcat_home}/webapps/ROOT/ instead of ${tomcat_home}/webapps/test1/. i tried messing with CONTEXT in server.xml, JKAutoAlias, etc. couldn't get it to work. very frustrated. pls help. danico - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: virtual host and JkMount with jk1.2.14
Danico Lee wrote: i got tomcat5, apache1.3 and jk1.2.14. i'm very confused with JkMount. in my http.conf, i have: VirtualHost our_server:80 ServerName our_server DocumentRoot ${tomcat_home}/webapps/test1 JkAutoAlias ${tomcat_home}/webapps JkMount /test1/* worker1 /VirtualHost Are you sure the ${tomcat_home} works in Apache. Try putting the full path name there. I've never thought the httpd.conf undergoes any substitution expansion before parsing, let alone also have substitution expansion work within a quoted string literal as well. -- Darryl L. Miles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: virtual host and JkMount with jk1.2.14
Are you sure the ${tomcat_home} works in Apache. Try putting the full path name there. I've never thought the httpd.conf undergoes any substitution expansion before parsing, let alone also have substitution expansion work within a quoted string literal as well. i'm sorry. i was too lazy to type the whole path in my message. i actually used the full path (which is /usr/system/tomcat/) instead of ${tomcat_home} in my http.conf. danico - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: virtual host memory usage
You are correct. My suggestion was that you in one case had a file in the common/lib directory, while in another you had it in the WEB-INF/lib directory. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Oleg [mailto:[EMAIL PROTECTED] Sent: Sunday, August 14, 2005 7:39 PM To: Tomcat Users List Subject: Re: virtual host memory usage I am sorry, what do you mean by host class loader? From what I understand there are 3 ways to load classes, /common/lib (used by tomcat), shared/lib (used by all applications), webapp/web-inf/lib used by this one application. Thank you Oleg On 8/13/05, George Sexton [EMAIL PROTECTED] wrote: The obvious first guess is that you have a class that is in the host classloader, and not the common classloader, and that class is consuming large amounts of memory. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Oleg [mailto:[EMAIL PROTECTED] Sent: Saturday, August 13, 2005 11:20 AM To: Tomcat Users List Subject: virtual host memory usage Why running 100 virutal hosts in Tomcat takes up much more memory than running a 100 identical applications under one host? Is there a way to configure Tomcat to run both the same? Thank you Oleg - 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: virtual host memory usage
Oh I see, well actually what I do, since all users with virtual hosts running identical applications, I place all application related libraries in shared/lib and WEB-INF/lib has only one jar which is application itself and its not in shared or common, common/lib only has Tomcat5 libraries plus database driver jar since I am using JNDI. Does that sound about right? Thanks Oleg On 8/15/05, George Sexton [EMAIL PROTECTED] wrote: You are correct. My suggestion was that you in one case had a file in the common/lib directory, while in another you had it in the WEB-INF/lib directory. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Oleg [mailto:[EMAIL PROTECTED] Sent: Sunday, August 14, 2005 7:39 PM To: Tomcat Users List Subject: Re: virtual host memory usage I am sorry, what do you mean by host class loader? From what I understand there are 3 ways to load classes, /common/lib (used by tomcat), shared/lib (used by all applications), webapp/web-inf/lib used by this one application. Thank you Oleg On 8/13/05, George Sexton [EMAIL PROTECTED] wrote: The obvious first guess is that you have a class that is in the host classloader, and not the common classloader, and that class is consuming large amounts of memory. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Oleg [mailto:[EMAIL PROTECTED] Sent: Saturday, August 13, 2005 11:20 AM To: Tomcat Users List Subject: virtual host memory usage Why running 100 virutal hosts in Tomcat takes up much more memory than running a 100 identical applications under one host? Is there a way to configure Tomcat to run both the same? Thank you Oleg - 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: virtual host memory usage
I am sorry, what do you mean by host class loader? From what I understand there are 3 ways to load classes, /common/lib (used by tomcat), shared/lib (used by all applications), webapp/web-inf/lib used by this one application. Thank you Oleg On 8/13/05, George Sexton [EMAIL PROTECTED] wrote: The obvious first guess is that you have a class that is in the host classloader, and not the common classloader, and that class is consuming large amounts of memory. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Oleg [mailto:[EMAIL PROTECTED] Sent: Saturday, August 13, 2005 11:20 AM To: Tomcat Users List Subject: virtual host memory usage Why running 100 virutal hosts in Tomcat takes up much more memory than running a 100 identical applications under one host? Is there a way to configure Tomcat to run both the same? Thank you Oleg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
virtual host memory usage
Why running 100 virutal hosts in Tomcat takes up much more memory than running a 100 identical applications under one host? Is there a way to configure Tomcat to run both the same? Thank you Oleg
Re: virtual host memory usage
To my knowledge (sometimes limited but open to expansion) the answer is no. I base this on the understanding that each host loaded by Tomcat takes up memory space. Then add the application to that. Doug - Original Message - From: Oleg [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Saturday, August 13, 2005 1:19 PM Subject: virtual host memory usage Why running 100 virutal hosts in Tomcat takes up much more memory than running a 100 identical applications under one host? Is there a way to configure Tomcat to run both the same? Thank you Oleg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: virtual host memory usage
The obvious first guess is that you have a class that is in the host classloader, and not the common classloader, and that class is consuming large amounts of memory. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Oleg [mailto:[EMAIL PROTECTED] Sent: Saturday, August 13, 2005 11:20 AM To: Tomcat Users List Subject: virtual host memory usage Why running 100 virutal hosts in Tomcat takes up much more memory than running a 100 identical applications under one host? Is there a way to configure Tomcat to run both the same? Thank you Oleg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Virtual Host Config Question
Hello, I have configured two Hosts in my server.xml for two different sites. The one I am having issues with is as follows: Host name=www.theuniquepear.com appBase=webapps/unique/ unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path= docBase=. / It actuall works well, but I am running struts application and with struts it includes the context which is unique. So behind the scenes, (in the URL) I am getting something like this: http://www.theuniquepear.com/welcome.do which is really doing this http://www.theuniquepear.com/unique/welcome.do And things of course are getting screwed up. Is there a way to get around that. I took off the /unique under appBase but then it showed the default Tomcat page. Anyone been here before? Thanks Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Virtual Host Config Question
Hi, Not sure about this one. How are you routing requests to Tomcat? Are you using the JK connector with a mapping of /*.do? Do you allow image to be handled by Apache/IIS or is Tomcat doing it? You may need to ensure your static resource uris like images reference the context name, e.g src=/unique/images/pic.gif Allistair. -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: 12 August 2005 15:43 To: tomcat-user@jakarta.apache.org Subject: Virtual Host Config Question Hello, I have configured two Hosts in my server.xml for two different sites. The one I am having issues with is as follows: Host name=www.theuniquepear.com appBase=webapps/unique/ unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path= docBase=. / It actuall works well, but I am running struts application and with struts it includes the context which is unique. So behind the scenes, (in the URL) I am getting something like this: http://www.theuniquepear.com/welcome.do which is really doing this http://www.theuniquepear.com/unique/welcome.do And things of course are getting screwed up. Is there a way to get around that. I took off the /unique under appBase but then it showed the default Tomcat page. Anyone been here before? Thanks Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Virtual Host Config Question
Thanks, I guess I will have to play with the configuration. But I am using straight Tomcat. Thanks for all the help, I guess it is not an obvious problem, so I must have something stupid going on. Sincerely Scott -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Friday, August 12, 2005 10:51 AM To: Tomcat Users List Subject: RE: Virtual Host Config Question Hi, Not sure about this one. How are you routing requests to Tomcat? Are you using the JK connector with a mapping of /*.do? Do you allow image to be handled by Apache/IIS or is Tomcat doing it? You may need to ensure your static resource uris like images reference the context name, e.g src=/unique/images/pic.gif Allistair. -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: 12 August 2005 15:43 To: tomcat-user@jakarta.apache.org Subject: Virtual Host Config Question Hello, I have configured two Hosts in my server.xml for two different sites. The one I am having issues with is as follows: Host name=www.theuniquepear.com appBase=webapps/unique/ unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path= docBase=. / It actuall works well, but I am running struts application and with struts it includes the context which is unique. So behind the scenes, (in the URL) I am getting something like this: http://www.theuniquepear.com/welcome.do which is really doing this http://www.theuniquepear.com/unique/welcome.do And things of course are getting screwed up. Is there a way to get around that. I took off the /unique under appBase but then it showed the default Tomcat page. Anyone been here before? Thanks Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - 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]
Virtual host, routing, problems with localhost
Hello, I am running Tomcat 5.5 on a PC. Up until a week ago, the machine was a local machine basically for my development. So I would hit the machine like so for sites: http://localhost/site1 or http://localhost/site9 On Monday, I purchased a staticIP and a DNS entry. I had register.com bind the DNS name with the IP. I purchased a router and put the IP into the router. In my original local machine, I gave it an IP and told the router to allow 80 traffic through to the machine. Then I updated my server.xml file and added a virtual host that was http://www.unique - /webapps/unique and all was happy. So I felt good about all things. But last night, I decided to create a new site, and now I cannot hit it with http://localhost or http://127.0.0.1 And then I cannot get into the manager app either. I believe that the machine is trying to go out to the internet and back through the router? I get lost here, and am basically clueless of what I need to do? Has anyone been through this? I would appreciate any input that I can try. Sincerely Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Virtual host, routing, problems with localhost
Do you have a host entry in your server.xml with the name of localhost? George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 8:26 AM To: tomcat-user@jakarta.apache.org Subject: Virtual host, routing, problems with localhost Hello, I am running Tomcat 5.5 on a PC. Up until a week ago, the machine was a local machine basically for my development. So I would hit the machine like so for sites: http://localhost/site1 or http://localhost/site9 On Monday, I purchased a staticIP and a DNS entry. I had register.com bind the DNS name with the IP. I purchased a router and put the IP into the router. In my original local machine, I gave it an IP and told the router to allow 80 traffic through to the machine. Then I updated my server.xml file and added a virtual host that was http://www.unique - /webapps/unique and all was happy. So I felt good about all things. But last night, I decided to create a new site, and now I cannot hit it with http://localhost or http://127.0.0.1 And then I cannot get into the manager app either. I believe that the machine is trying to go out to the internet and back through the router? I get lost here, and am basically clueless of what I need to do? Has anyone been through this? I would appreciate any input that I can try. Sincerely Scott - 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: Virtual host, routing, problems with localhost
Sorry for the latency, I was in a meeting. No I do not have one. Do I need one, and if so, is the IP the machine IP or localhost, or 127.0.0.1? Thanks Scott -Original Message- From: George Sexton [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 10:18 AM To: 'Tomcat Users List' Subject: RE: Virtual host, routing, problems with localhost Do you have a host entry in your server.xml with the name of localhost? George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 8:26 AM To: tomcat-user@jakarta.apache.org Subject: Virtual host, routing, problems with localhost Hello, I am running Tomcat 5.5 on a PC. Up until a week ago, the machine was a local machine basically for my development. So I would hit the machine like so for sites: http://localhost/site1 or http://localhost/site9 On Monday, I purchased a staticIP and a DNS entry. I had register.com bind the DNS name with the IP. I purchased a router and put the IP into the router. In my original local machine, I gave it an IP and told the router to allow 80 traffic through to the machine. Then I updated my server.xml file and added a virtual host that was http://www.unique - /webapps/unique and all was happy. So I felt good about all things. But last night, I decided to create a new site, and now I cannot hit it with http://localhost or http://127.0.0.1 And then I cannot get into the manager app either. I believe that the machine is trying to go out to the internet and back through the router? I get lost here, and am basically clueless of what I need to do? Has anyone been through this? I would appreciate any input that I can try. Sincerely Scott - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Virtual host, routing, problems with localhost
I think that unless you have a default entry, that it would fail. The issue is that the host name is being presented to Tomcat, and the request mapper is looking up the host name presented as part of the http request. If it's not found, and there is no default, then it would return an error. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 10:43 AM To: Tomcat Users List Subject: RE: Virtual host, routing, problems with localhost Sorry for the latency, I was in a meeting. No I do not have one. Do I need one, and if so, is the IP the machine IP or localhost, or 127.0.0.1? Thanks Scott -Original Message- From: George Sexton [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 10:18 AM To: 'Tomcat Users List' Subject: RE: Virtual host, routing, problems with localhost Do you have a host entry in your server.xml with the name of localhost? George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 9585 -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 09, 2005 8:26 AM To: tomcat-user@jakarta.apache.org Subject: Virtual host, routing, problems with localhost Hello, I am running Tomcat 5.5 on a PC. Up until a week ago, the machine was a local machine basically for my development. So I would hit the machine like so for sites: http://localhost/site1 or http://localhost/site9 On Monday, I purchased a staticIP and a DNS entry. I had register.com bind the DNS name with the IP. I purchased a router and put the IP into the router. In my original local machine, I gave it an IP and told the router to allow 80 traffic through to the machine. Then I updated my server.xml file and added a virtual host that was http://www.unique - /webapps/unique and all was happy. So I felt good about all things. But last night, I decided to create a new site, and now I cannot hit it with http://localhost or http://127.0.0.1 And then I cannot get into the manager app either. I believe that the machine is trying to go out to the internet and back through the router? I get lost here, and am basically clueless of what I need to do? Has anyone been through this? I would appreciate any input that I can try. Sincerely Scott - 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] - 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]
Newbie Virtual Host Question
Help! I'm sure my problem boils down to simple syntax, but I've been wrestling with it for days so its time to ask... I'm running a default installation of Tomcat 5.5.9 on Windows XP purely for development/training purposes. As a matter of principal I like to keep all my data separate from my other files, so my web sites are all stored under C:\Data\CurrentProjects\ProjectName. All I want to do is to configure Tomcat to see these sites in their current location rather than deploy them into the Tomcat file structure, but I can't seem to get it edited correctly in the server.xml file. For now these are basic web sites with some SSI and CGI. I had this all running smoothly with an earlier version of Tomcat, but hardware problems wiped out that configuration and I can't seem to get it working again. I've edited my hosts file to reference my local development sites, but the best I've been able to manage so far is to get my own site address to return the default Tomcat pages. Everything else returns some variation of a page not found error. An example of the correct Virtual Host definition (context/apBase/docBase syntax, and anything else I might be missing) to point Tomcat at sites in another directory (under Windows) would be greatly appreciated. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Virtual host, workers file and httpd.conf settings for SSL
Hello, just installed Apache and Tomcat with the JK Connector and it works for = 1 worker on my machine. Now I installed a new Application for which I want to have SSL access. So I made a new virtual host in my hhtpd.conf that looks like this for = the standard and the SSL host: VirtualHost *:80 ServerAdmin [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]=20 DocumentRoot c:/Apache/Apache2/htdocs ServerName idmsrv1.example.net ErrorLog logs/idmsrv1.example.net-error.log CustomLog logs/idmsrv1.example.net-access.log common /VirtualHost VirtualHost *:443 ServerAdmin [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]=20 DocumentRoot C:/tomcat/Tomcat_5.5.9/webapps/idm ServerName idm.example.net ServerAlias idm ErrorLog logs/idm.example.net-error.log CustomLog logs/idm.example.net-access.log common=20 SSLEngine On SSLCertificateFile conf/ssl/identity.crt SSLCertificateKeyFile conf/ssl/server.key /VirtualHost=20 =20 The JK Part of my httpd.conf looks like this: # Update this path to match your modules location LoadModulejk_module modules/mod_jk.so =20 # Where to find workers.properties # Update this path to match your conf directory location (put = workers.properties next to httpd.conf) JkWorkersFile conf/workers.properties # Where to put jk logs # Update this path to match your logs directory location (put mod_jk.log = next to access_log) JkLogFile logs/mod_jk.log # Set the jk log level [debug/error/info] JkLogLevelinfo # Select the log format JkLogStampFormat [%a %b %d %H:%M:%S %Y] # JkOptions indicate to send SSL KEY SIZE,=20 JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories # JkRequestLogFormat set the request format=20 JkRequestLogFormat %w %V %T # send all Servlet Examples to worker1 JkMount /servlets-examples* worker1 # send all JSP Examples to worker1 JkMount /jsp-examples* worker1 # send all Servlet Examples to worker1 JkMount /tomcat-docs* worker1 # send all IDM Examples to worker1 JkMount /idm* worker1 Everything is sent to worker now in my workers.properties file: # Define 1 real worker using ajp13 worker.list=3Dworker1 # Set properties for worker1 (ajp13) worker.worker1.type=3Dajp13 worker.worker1.host=3Dlocalhost worker.worker1.port=3D8009 worker.worker1.lbfactor=3D50 worker.worker1.cachesize=3D10 worker.worker1.cache_timeout=3D600 worker.worker1.socket_keepalive=3D1 worker.worker1.reclycle_timeout=3D300 SSL is already working and I set up this idm.example.net host which = should be O.K. too. When I now access the host idm.example.net from the Webbrowser, I see = the source Code of the /idm/*.jsp site not the correct Website. Tomcat is not starting the WebApp. What and how do I have to configure the virtual host, the httpd.conf JK = configurations and the worker file to get the Webapp working correctly? Do I have to set up a second worker (as ajp13?)? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Virtual host, workers file and httpd.conf settings for SSL
Change From DocumentRoot C:/tomcat/Tomcat_5.5.9/webapps/idm To DocumentRoot c:/Apache/Apache2/htdocs Regards Guru -Original Message- From: Gessendorfer, Thomas [mailto:[EMAIL PROTECTED] Sent: 07 June 2005 11:43 To: tomcat-user@jakarta.apache.org Subject: Virtual host, workers file and httpd.conf settings for SSL Hello, just installed Apache and Tomcat with the JK Connector and it works for = 1 worker on my machine. Now I installed a new Application for which I want to have SSL access. So I made a new virtual host in my hhtpd.conf that looks like this for = the standard and the SSL host: VirtualHost *:80 ServerAdmin [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]=20 DocumentRoot c:/Apache/Apache2/htdocs ServerName idmsrv1.example.net ErrorLog logs/idmsrv1.example.net-error.log CustomLog logs/idmsrv1.example.net-access.log common /VirtualHost VirtualHost *:443 ServerAdmin [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]=20 DocumentRoot C:/tomcat/Tomcat_5.5.9/webapps/idm ServerName idm.example.net ServerAlias idm ErrorLog logs/idm.example.net-error.log CustomLog logs/idm.example.net-access.log common=20 SSLEngine On SSLCertificateFile conf/ssl/identity.crt SSLCertificateKeyFile conf/ssl/server.key /VirtualHost=20 =20 The JK Part of my httpd.conf looks like this: # Update this path to match your modules location LoadModulejk_module modules/mod_jk.so =20 # Where to find workers.properties # Update this path to match your conf directory location (put = workers.properties next to httpd.conf) JkWorkersFile conf/workers.properties # Where to put jk logs # Update this path to match your logs directory location (put mod_jk.log = next to access_log) JkLogFile logs/mod_jk.log # Set the jk log level [debug/error/info] JkLogLevelinfo # Select the log format JkLogStampFormat [%a %b %d %H:%M:%S %Y] # JkOptions indicate to send SSL KEY SIZE,=20 JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories # JkRequestLogFormat set the request format=20 JkRequestLogFormat %w %V %T # send all Servlet Examples to worker1 JkMount /servlets-examples* worker1 # send all JSP Examples to worker1 JkMount /jsp-examples* worker1 # send all Servlet Examples to worker1 JkMount /tomcat-docs* worker1 # send all IDM Examples to worker1 JkMount /idm* worker1 Everything is sent to worker now in my workers.properties file: # Define 1 real worker using ajp13 worker.list=3Dworker1 # Set properties for worker1 (ajp13) worker.worker1.type=3Dajp13 worker.worker1.host=3Dlocalhost worker.worker1.port=3D8009 worker.worker1.lbfactor=3D50 worker.worker1.cachesize=3D10 worker.worker1.cache_timeout=3D600 worker.worker1.socket_keepalive=3D1 worker.worker1.reclycle_timeout=3D300 SSL is already working and I set up this idm.example.net host which = should be O.K. too. When I now access the host idm.example.net from the Webbrowser, I see = the source Code of the /idm/*.jsp site not the correct Website. Tomcat is not starting the WebApp. What and how do I have to configure the virtual host, the httpd.conf JK = configurations and the worker file to get the Webapp working correctly? Do I have to set up a second worker (as ajp13?)? - 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]
AW: Virtual host, workers file and httpd.conf settings for SSL
Then I see the starting page of the Apache2 Installation... Regards, Tom -Ursprüngliche Nachricht- Von: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 7. Juni 2005 13:07 An: 'Tomcat Users List' Betreff: RE: Virtual host, workers file and httpd.conf settings for SSL Change From DocumentRoot C:/tomcat/Tomcat_5.5.9/webapps/idm To DocumentRoot c:/Apache/Apache2/htdocs Regards Guru -Original Message- From: Gessendorfer, Thomas [mailto:[EMAIL PROTECTED] Sent: 07 June 2005 11:43 To: tomcat-user@jakarta.apache.org Subject: Virtual host, workers file and httpd.conf settings for SSL Hello, just installed Apache and Tomcat with the JK Connector and it works for = 1 worker on my machine. Now I installed a new Application for which I want to have SSL access. So I made a new virtual host in my hhtpd.conf that looks like this for = the standard and the SSL host: VirtualHost *:80 ServerAdmin [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]=20 DocumentRoot c:/Apache/Apache2/htdocs ServerName idmsrv1.example.net ErrorLog logs/idmsrv1.example.net-error.log CustomLog logs/idmsrv1.example.net-access.log common /VirtualHost VirtualHost *:443 ServerAdmin [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]=20 DocumentRoot C:/tomcat/Tomcat_5.5.9/webapps/idm ServerName idm.example.net ServerAlias idm ErrorLog logs/idm.example.net-error.log CustomLog logs/idm.example.net-access.log common=20 SSLEngine On SSLCertificateFile conf/ssl/identity.crt SSLCertificateKeyFile conf/ssl/server.key /VirtualHost=20 =20 The JK Part of my httpd.conf looks like this: # Update this path to match your modules location LoadModulejk_module modules/mod_jk.so =20 # Where to find workers.properties # Update this path to match your conf directory location (put = workers.properties next to httpd.conf) JkWorkersFile conf/workers.properties # Where to put jk logs # Update this path to match your logs directory location (put mod_jk.log = next to access_log) JkLogFile logs/mod_jk.log # Set the jk log level [debug/error/info] JkLogLevelinfo # Select the log format JkLogStampFormat [%a %b %d %H:%M:%S %Y] # JkOptions indicate to send SSL KEY SIZE,=20 JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories # JkRequestLogFormat set the request format=20 JkRequestLogFormat %w %V %T # send all Servlet Examples to worker1 JkMount /servlets-examples* worker1 # send all JSP Examples to worker1 JkMount /jsp-examples* worker1 # send all Servlet Examples to worker1 JkMount /tomcat-docs* worker1 # send all IDM Examples to worker1 JkMount /idm* worker1 Everything is sent to worker now in my workers.properties file: # Define 1 real worker using ajp13 worker.list=3Dworker1 # Set properties for worker1 (ajp13) worker.worker1.type=3Dajp13 worker.worker1.host=3Dlocalhost worker.worker1.port=3D8009 worker.worker1.lbfactor=3D50 worker.worker1.cachesize=3D10 worker.worker1.cache_timeout=3D600 worker.worker1.socket_keepalive=3D1 worker.worker1.reclycle_timeout=3D300 SSL is already working and I set up this idm.example.net host which = should be O.K. too. When I now access the host idm.example.net from the Webbrowser, I see = the source Code of the /idm/*.jsp site not the correct Website. Tomcat is not starting the WebApp. What and how do I have to configure the virtual host, the httpd.conf JK = configurations and the worker file to get the Webapp working correctly? Do I have to set up a second worker (as ajp13?)? - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Virtual host, workers file and httpd.conf settings for SSL
The do JkMount /*.jsp worker1 Restart both the servers and say https://yourservername/index.jsp Regard Guru -Original Message- From: Gessendorfer, Thomas [mailto:[EMAIL PROTECTED] Sent: 07 June 2005 12:28 To: Tomcat Users List Subject: AW: Virtual host, workers file and httpd.conf settings for SSL Then I see the starting page of the Apache2 Installation... Regards, Tom -Ursprüngliche Nachricht- Von: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 7. Juni 2005 13:07 An: 'Tomcat Users List' Betreff: RE: Virtual host, workers file and httpd.conf settings for SSL Change From DocumentRoot C:/tomcat/Tomcat_5.5.9/webapps/idm To DocumentRoot c:/Apache/Apache2/htdocs Regards Guru -Original Message- From: Gessendorfer, Thomas [mailto:[EMAIL PROTECTED] Sent: 07 June 2005 11:43 To: tomcat-user@jakarta.apache.org Subject: Virtual host, workers file and httpd.conf settings for SSL Hello, just installed Apache and Tomcat with the JK Connector and it works for = 1 worker on my machine. Now I installed a new Application for which I want to have SSL access. So I made a new virtual host in my hhtpd.conf that looks like this for = the standard and the SSL host: VirtualHost *:80 ServerAdmin [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]=20 DocumentRoot c:/Apache/Apache2/htdocs ServerName idmsrv1.example.net ErrorLog logs/idmsrv1.example.net-error.log CustomLog logs/idmsrv1.example.net-access.log common /VirtualHost VirtualHost *:443 ServerAdmin [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]=20 DocumentRoot C:/tomcat/Tomcat_5.5.9/webapps/idm ServerName idm.example.net ServerAlias idm ErrorLog logs/idm.example.net-error.log CustomLog logs/idm.example.net-access.log common=20 SSLEngine On SSLCertificateFile conf/ssl/identity.crt SSLCertificateKeyFile conf/ssl/server.key /VirtualHost=20 =20 The JK Part of my httpd.conf looks like this: # Update this path to match your modules location LoadModulejk_module modules/mod_jk.so =20 # Where to find workers.properties # Update this path to match your conf directory location (put = workers.properties next to httpd.conf) JkWorkersFile conf/workers.properties # Where to put jk logs # Update this path to match your logs directory location (put mod_jk.log = next to access_log) JkLogFile logs/mod_jk.log # Set the jk log level [debug/error/info] JkLogLevelinfo # Select the log format JkLogStampFormat [%a %b %d %H:%M:%S %Y] # JkOptions indicate to send SSL KEY SIZE,=20 JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories # JkRequestLogFormat set the request format=20 JkRequestLogFormat %w %V %T # send all Servlet Examples to worker1 JkMount /servlets-examples* worker1 # send all JSP Examples to worker1 JkMount /jsp-examples* worker1 # send all Servlet Examples to worker1 JkMount /tomcat-docs* worker1 # send all IDM Examples to worker1 JkMount /idm* worker1 Everything is sent to worker now in my workers.properties file: # Define 1 real worker using ajp13 worker.list=3Dworker1 # Set properties for worker1 (ajp13) worker.worker1.type=3Dajp13 worker.worker1.host=3Dlocalhost worker.worker1.port=3D8009 worker.worker1.lbfactor=3D50 worker.worker1.cachesize=3D10 worker.worker1.cache_timeout=3D600 worker.worker1.socket_keepalive=3D1 worker.worker1.reclycle_timeout=3D300 SSL is already working and I set up this idm.example.net host which = should be O.K. too. When I now access the host idm.example.net from the Webbrowser, I see = the source Code of the /idm/*.jsp site not the correct Website. Tomcat is not starting the WebApp. What and how do I have to configure the virtual host, the httpd.conf JK = configurations and the worker file to get the Webapp working correctly? Do I have to set up a second worker (as ajp13?)? - 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] - 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]
virtual host not working
Hi, I am trying to make my apache/tomcat server work but no luck so far. I've created a /var/www/html/mydomain/jsp, /var/www/html/mydomain/WEB-INF/classes and put the numguess.jsp, WEB-INF/classes/num/NumberGuessBean.class NumberGuessBean.java. I've added a Location in my apache's httpd.conf Location /jsp JkUriSet worker ajp13:localhost:8009 /Location When I access mydomain/jsp/numguess.jsp I receive tomcat's output HTTP Status 404 - /jsp/numguess.jsp type Status report message /jsp/numguess.jsp description The requested resource (/jsp/numguess.jsp) is not available. Apache Tomcat/4.1.27-13 What am I doing wrong ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
using manager with apache virtual host
Hi, I have a Jakarta 5.0.28 standalone and manager is working just fine. when I try to operate manager (on Solaris 9) with Jakarta connected to apache 2. the apache is redirecting the requests to the apache webapp root. How can I use manager with apache virtual host? Regards, Amir S
RE: using manager with apache virtual host
Send me the httpd.conf -Original Message- From: Amir S [mailto:[EMAIL PROTECTED] Sent: 20 April 2005 16:02 To: tomcat-user@jakarta.apache.org Subject: using manager with apache virtual host Hi, I have a Jakarta 5.0.28 standalone and manager is working just fine. when I try to operate manager (on Solaris 9) with Jakarta connected to apache 2. the apache is redirecting the requests to the apache webapp root. How can I use manager with apache virtual host? Regards, Amir S - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: using manager with apache virtual host
Here is the file. Regards, Amir S -Original Message- From: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 20, 2005 16:33 To: 'Tomcat Users List' Subject: RE: using manager with apache virtual host Send me the httpd.conf -Original Message- From: Amir S [mailto:[EMAIL PROTECTED] Sent: 20 April 2005 16:02 To: tomcat-user@jakarta.apache.org Subject: using manager with apache virtual host Hi, I have a Jakarta 5.0.28 standalone and manager is working just fine. when I try to operate manager (on Solaris 9) with Jakarta connected to apache 2. the apache is redirecting the requests to the apache webapp root. How can I use manager with apache virtual host? Regards, Amir S - 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: using manager with apache virtual host
# # Based upon the NCSA server configuration files originally by Rob McCool. # # This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See URL:http://httpd.apache.org/docs-2.0/ for detailed information about # the directives. # # Do NOT simply read the instructions in here without understanding # what they do. They're here only as hints or reminders. If you are unsure # consult the online docs. You have been warned. # # The configuration directives are grouped into three basic sections: # 1. Directives that control the operation of the Apache server process as a # whole (the 'global environment'). # 2. Directives that define the parameters of the 'main' or 'default' server, # which responds to requests that aren't handled by a virtual host. # These directives also provide default values for the settings # of all virtual hosts. # 3. Settings for virtual hosts, which allow Web requests to be sent to # different IP addresses or hostnames and have them handled by the # same Apache server process. # # Configuration and logfile names: If the filenames you specify for many # of the server's control files begin with / (or drive:/ for Win32), the # server will use that explicit path. If the filenames do *not* begin # with /, the value of ServerRoot is prepended -- so logs/foo.log # with ServerRoot set to /usr/local/apache2 will be interpreted by the # server as /usr/local/apache2/logs/foo.log. # ### Section 1: Global Environment # # The directives in this section affect the overall operation of Apache, # such as the number of concurrent requests it can handle or where it # can find its configuration files. # # # ServerRoot: The top of the directory tree under which the server's # configuration, error, and log files are kept. # # NOTE! If you intend to place this on an NFS (or otherwise network) # mounted filesystem then please read the LockFile documentation (available # at URL:http://httpd.apache.org/docs-2.0/mod/mpm_common.html#lockfile); # you will save yourself a lot of trouble. # # Do NOT add a slash at the end of the directory path. # ServerRoot /usr/local/apache2 # # The accept serialization lock file MUST BE STORED ON A LOCAL DISK. # IfModule !mpm_winnt.c IfModule !mpm_netware.c #LockFile logs/accept.lock /IfModule /IfModule # # ScoreBoardFile: File used to store internal server process information. # If unspecified (the default), the scoreboard will be stored in an # anonymous shared memory segment, and will be unavailable to third-party # applications. # If specified, ensure that no two invocations of Apache share the same # scoreboard file. The scoreboard file MUST BE STORED ON A LOCAL DISK. # IfModule !mpm_netware.c IfModule !perchild.c #ScoreBoardFile logs/apache_runtime_status /IfModule /IfModule # # PidFile: The file in which the server should record its process # identification number when it starts. # IfModule !mpm_netware.c PidFile logs/httpd.pid /IfModule # # Timeout: The number of seconds before receives and sends time out. # Timeout 60 # # KeepAlive: Whether or not to allow persistent connections (more than # one request per connection). Set to Off to deactivate. # KeepAlive On # # MaxKeepAliveRequests: The maximum number of requests to allow # during a persistent connection. Set to 0 to allow an unlimited amount. # We recommend you leave this number high, for maximum performance. # MaxKeepAliveRequests 100 # # KeepAliveTimeout: Number of seconds to wait for the next request from the # same client on the same connection. # KeepAliveTimeout 10 ## ## Server-Pool Size Regulation (MPM specific) ## ### ### current MPM used: 13 May 03 ### # prefork MPM # StartServers: number of server processes to start # MinSpareServers: minimum number of server processes which are kept spare # MaxSpareServers: maximum number of server processes which are kept spare # MaxClients: maximum number of server processes allowed to start # MaxRequestsPerChild: maximum number of requests a server process serves IfModule prefork.c StartServers20 MinSpareServers 10 MaxSpareServers 20 #MaxClients 256 MaxClients 150 MaxRequestsPerChild 1 /IfModule # worker MPM # StartServers: initial number of server processes to start # MaxClients: maximum number of simultaneous client connections # MinSpareThreads: minimum number of worker threads which are kept spare # MaxSpareThreads: maximum number of worker threads which are kept spare # ThreadsPerChild: constant number of worker threads in each server process # MaxRequestsPerChild: maximum number of requests a server process serves IfModule worker.c StartServers 2 MaxClients 150 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 1 /IfModule # Listen 10.0.0.202:80 ## ## SSL Support ## ## When we also provide SSL we have to listen to the ## standard HTTP
Virtual Host in Tomcat 4.1.29
I'm going to try to keep this short and to the point. I'm trying to configure a virtual host on a 4.1.29 server with no luck. I've successfully configured it on 5.5.7 which seems to have better facilities for configuring VH's. I've configured the server.xml to have an additional host entry as shown: Host name=ddi debug=0 appBase=webapps/ddi unpackWARs=true autoDeploy=true Logger className=org.apache.catalina.logger.FileLogger directory=logs/ddi prefix=ddi_log. suffix=.txt timestamp=true/ Aliasnt-notes2/Alias /Host Logging is working fine, but when I try to navigate to http://ddi, I get No context configured to process this request. Problem is when I try to configure a DefaultContext, I get a different error message. So what needs defined and where does it go. BTW, I have a WEB-INF under webapps/ddi with an empty web.xml. This is where I've been trying to configure the default context for this VH. Thanks for any help! Darryl __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Virtual Host in Tomcat 4.1.29
Disregard... I think I've got it! Darryl __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Virtual host configuration
On Thu, 7 Apr 2005, Darryl Wilburn wrote: Greetins all, New to Tomcat/Apache Implemented Tomcat 4.1.29 to support an application that required an application server. I'm migrating the application from an existing NT 4.0 system and would like to implement it as a virtual host on the Win2003 server running Tomcat. (Unfortunately, the app does not support non-Win hosts) Anyway, I'd like to define the starting point of the virtual host as a directory that is 3 levels below webapps. In other words, I want the users to see the site as http://hostname, instead http://hostname/folder1/folder2/folder3. (folder3 being the desired home directory) This explains how to do it for virtual hosts one level deep. Three is a simple extension. http://www.ex-parrot.com/~pete/tomcat-vhost.html Pete Stevens -- Pete Stevens [EMAIL PROTECTED] http://www.ex-parrot.com/~pete/ We agree it[the gas bill] was rather high for the time of year. It's possible Mr Purdey has been charged for the gas used up during the explosion that destroyed his house. -- North West Gas Spokesman - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Virtual host configuration
Greetins all, New to Tomcat/Apache Implemented Tomcat 4.1.29 to support an application that required an application server. I'm migrating the application from an existing NT 4.0 system and would like to implement it as a virtual host on the Win2003 server running Tomcat. (Unfortunately, the app does not support non-Win hosts) Anyway, I'd like to define the starting point of the virtual host as a directory that is 3 levels below webapps. In other words, I want the users to see the site as http://hostname, instead http://hostname/folder1/folder2/folder3. (folder3 being the desired home directory) Thanks DW
Re: Apache, tomcat and virtual host
Yes, I'd like to set up the following set up the following URLs: http://www.domain1.com/ http://www.domain2.com/ https://sthg.domain1.com/ but this http://www.domain1.com/ must redirects to a tomcat instance and I would like to implement load balancing on this one (so using mod_jk). How should I configure my httpd.conf to realize that as so far if I implement mod_jk on my https instance, all domains are redirected to the tomcat instance. Thanks. DvJ From: David Rees [EMAIL PROTECTED] Reply-To: David Rees [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Subject: Re: Apache, tomcat and virtual host Date: Tue, 5 Apr 2005 17:54:22 -0700 On Apr 5, 2005 4:17 AM, david joffrin [EMAIL PROTECTED] wrote: I would like to run the following configurations with only one machine: 3 domains. Let's name them, www.domain1.com and sthg.domain2.com and www.domain2.com. www.domain1.com runs on 80 using apache and php www.domain2.com runs on 8080 using tomcat, mysql... sthg.domain2.com runs on 443 using apache and php Using the virtual hosts, I managed to set-up successfully www.domain1.com and sthg.domain2.com. I am now trying to include mod_jk, but when doing that, I am loosing the virtual hosts features and all my requests (for all sites) are sent to the tomcat instance (including the https one). Is that possible should probably my first question? Has anyone some experience with a similar set-up? Yes, it is possible to configure multiple virtual hosts with Apache and Tomcat... Your explanation of your current setup is confusing. Are you trying to setup the following URLs? http://www.domain1.com/ http://www.domain2.com/ https://sthg.domain1.com/ -Dave - 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 and virtual host
On Apr 5, 2005 11:23 PM, david joffrin [EMAIL PROTECTED] wrote: Yes, I'd like to set up the following set up the following URLs: http://www.domain1.com/ http://www.domain2.com/ https://sthg.domain1.com/ but this http://www.domain1.com/ must redirects to a tomcat instance and I would like to implement load balancing on this one (so using mod_jk). How should I configure my httpd.conf to realize that as so far if I implement mod_jk on my https instance, all domains are redirected to the tomcat instance. Why don't you post links to or paste in your httpd.conf and tomcat-workers.properties so that we have half a chance of figuring out your problem? -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache, tomcat and virtual host
Hi, I would like to run the following configurations with only one machine: 3 domains. Let's name them, www.domain1.com and sthg.domain2.com and www.domain2.com. www.domain1.com runs on 80 using apache and php www.domain2.com runs on 8080 using tomcat, mysql... sthg.domain2.com runs on 443 using apache and php Using the virtual hosts, I managed to set-up successfully www.domain1.com and sthg.domain2.com. I am now trying to include mod_jk, but when doing that, I am loosing the virtual hosts features and all my requests (for all sites) are sent to the tomcat instance (including the https one). Is that possible should probably my first question? Has anyone some experience with a similar set-up? Thanks for your help. David. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache, tomcat and virtual host
Hi, I would like to run the following configurations with only one machine: 3 domains. Let's name them, www.domain1.com and sthg.domain2.com and www.domain2.com. www.domain1.com runs on 80 using apache and php www.domain2.com runs on 8080 using tomcat, mysql... sthg.domain2.com runs on 443 using apache and php Using the virtual hosts, I managed to set-up successfully www.domain1.com and sthg.domain2.com. I am now trying to include mod_jk, but when doing that, I am loosing the virtual hosts features and all my requests (for all sites) are sent to the tomcat instance (including the https one). Is that possible should probably my first question? ProxyHost on one machine that pushes 8080 to another that implement mod_jk? Has anyone some experience with a similar set-up? Thanks for your help. David. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache, tomcat and virtual host
On Apr 5, 2005 4:17 AM, david joffrin [EMAIL PROTECTED] wrote: I would like to run the following configurations with only one machine: 3 domains. Let's name them, www.domain1.com and sthg.domain2.com and www.domain2.com. www.domain1.com runs on 80 using apache and php www.domain2.com runs on 8080 using tomcat, mysql... sthg.domain2.com runs on 443 using apache and php Using the virtual hosts, I managed to set-up successfully www.domain1.com and sthg.domain2.com. I am now trying to include mod_jk, but when doing that, I am loosing the virtual hosts features and all my requests (for all sites) are sent to the tomcat instance (including the https one). Is that possible should probably my first question? Has anyone some experience with a similar set-up? Yes, it is possible to configure multiple virtual hosts with Apache and Tomcat... Your explanation of your current setup is confusing. Are you trying to setup the following URLs? http://www.domain1.com/ http://www.domain2.com/ https://sthg.domain1.com/ -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache, virtual host and Tomcat
Reposting as the postmaster is complaining... Hi, I would like to run the following configurations with only one machine: 3 domains. Let's name them, www.domain1.com and sthg.domain2.com and www.domain2.com. www.domain1.com runs on 80 using apache and php www.domain2.com runs on 8080 using tomcat, mysql... sthg.domain2.com runs on 443 using apache and php Using the virtual hosts, I managed to set-up successfully www.domain1.com and sthg.domain2.com. I am now trying to include mod_jk, but when doing that, I am loosing the virtual hosts features and all my requests (for all sites) are sent to the tomcat instance (including the https one). Is that possible should probably my first question? Has anyone some experience with a similar set-up? Thanks for your help. David. - 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, virtual host and Tomcat
Hi, I would like to run the following configurations with only one machine: 3 domains. Let's name them, www.domain1.com and sthg.domain2.com and www.domain2.com. www.domain1.com runs on 80 using apache and php www.domain2.com runs on 8080 using tomcat, mysql... sthg.domain2.com runs on 443 using apache and php Using the virtual hosts, I managed to set-up successfully www.domain1.com and sthg.domain2.com. I am now trying to include mod_jk, but when doing that, I am loosing the virtual hosts features and all my requests (for all sites) are sent to the tomcat instance (including the https one). Is that possible should probably my first question? Has anyone some experience with a similar set-up? Thanks for your help. David. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache, virtual host and Tomcat
Hi, I would like to run the following configurations with only one machine: 3 domains. Let's name them, www.domain1.com and sthg.domain2.com and www.domain2.com. www.domain1.com runs on 80 using apache and php www.domain2.com runs on 8080 using tomcat, mysql... sthg.domain2.com runs on 443 using apache and php Using the virtual hosts, I managed to set-up successfully www.domain1.com and sthg.domain2.com. I am now trying to include mod_jk, but when doing that, I am loosing the virtual hosts features and all my requests (for all sites) are sent to the tomcat instance (including the https one). Is that possible should probably my first question? Has anyone some experience with a similar set-up? Thanks for your help. David. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk + ssl on a virtual host.
I have an issue with detecting HTTPS when running on a virtual server behing mod_jk; here's my setup: For reasons that I can't currently change I have an internal server running as app.server.com (example url); it is aliased so that multiple virtual hosts (name based) are running as: x.app.server.com , y.app.server.com, z.app.server.com, etc... The server has an internal SSL certificate generated for app.server.com; this produces a warning, but otherwise works when using HTTPS to connect to x.app.server.com. Not the best solution, I know, but like I said right now I am just trying to support it. So, to complicate matters I have Tomcat (5.0.28) running on the same machine, with all the virtual hosts using Aliasx.app.server.com/Alias in my server.xml file. When connecting, I can access the web application via HTTPS; however Tomcat seems unaware that the connection is secure - request.isSecure() == false, as well as other tests that I can think of, overall annoying, but not too bad except that redirects are generated pointing to HTTP instead of HTTPS. I have tried: JkExtractSSL On JkHTTPSIndicator HTTPS Does anyone know of any work around/fix to this? Thanks, -- Robert r. Sanders Chief Technologist iPOV (334) 821-5412 www.ipov.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk + ssl on a virtual host.
From: Robert r. Sanders [mailto:[EMAIL PROTECTED] Subject: mod_jk + ssl on a virtual host. When connecting, I can access the web application via HTTPS; however Tomcat seems unaware that the connection is secure Have you set secure=true in the connector entry in server.xml that you're using for Tomcat? (Not sure what the side effects might be.) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk + ssl on a virtual host.
Caldarale, Charles R wrote: From: Robert r. Sanders [mailto:[EMAIL PROTECTED] Subject: mod_jk + ssl on a virtual host. When connecting, I can access the web application via HTTPS; however Tomcat seems unaware that the connection is secure Have you set secure=true in the connector entry in server.xml that you're using for Tomcat? (Not sure what the side effects might be.) - Chuck No, currently the same connection (ajp13) is being used for both http and https. I have had success with this in the past; but not with the admitedly wierd setup that I currently am trying to get working. -- Robert r. Sanders Chief Technologist iPOV (334) 821-5412 www.ipov.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to make manager available to each virtual host
Try this: 1. go to catalina_home/conf/Catalina/ 2. open the first host folder . In my case, the first host is localhost. 3. Let's named the first host as localhost and the second host is X. So copy the content of the localhost into the X host. 4. restart the tomcat. 5. Try to access the manager for the X host. I've tried those steps and it worked. --- James T. Studebaker [EMAIL PROTECTED] wrote: Leaves I am running tomcat 5.0.28 on a linux fedora core 2 machine. I have configured virtual hosts for tomcat. I wish to make the manager application available to each vertual host that I have configured so that users can deploy applications to their account. What I did is add a context to each virtual host and defined the varables for the context exactly as they are defined in the context found in the localhost host. I have gotten this approach to work on a local window xp1. installation, however it fails on a remote linux installation. Can anyone give me a hint what needs to be done? Here is the error message I get: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Wrapper cannot find servlet class org.apache.catalina.manager.HTMLManagerServlet or a class it depends on org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) java.lang.Thread.run(Thread.java:534) root cause java.lang.ClassNotFoundException: org.apache.catalina.manager.HTMLManagerServlet org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:854) org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:721) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) java.lang.Thread.run(Thread.java:534) note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs. Apache Tomcat/5.0.28 Thank you James T. Studebaker __ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to make manager available to each virtual host
Hi, I did all the steps that you have suggested me (I used testhost instead of X). But now wonder how to access the newly created virtual testhost through the manager application. Do I need make any modification in the server.xml file? Another question that eagers me is how to configure tomcat in a way that our student's can deploy and undeploy web applications using the manager but without manipulating the applications of the other accounts. Please, can you guide me to set up this server. It will be something very useful in our department. Thanks, Ferad Zyulkyarov. - Original Message - From: alis asma alias [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Monday, February 28, 2005 11:12 AM Subject: Re: how to make manager available to each virtual host Try this: 1. go to catalina_home/conf/Catalina/ 2. open the first host folder . In my case, the first host is localhost. 3. Let's named the first host as localhost and the second host is X. So copy the content of the localhost into the X host. 4. restart the tomcat. 5. Try to access the manager for the X host. I've tried those steps and it worked. --- James T. Studebaker [EMAIL PROTECTED] wrote: Leaves I am running tomcat 5.0.28 on a linux fedora core 2 machine. I have configured virtual hosts for tomcat. I wish to make the manager application available to each vertual host that I have configured so that users can deploy applications to their account. What I did is add a context to each virtual host and defined the varables for the context exactly as they are defined in the context found in the localhost host. I have gotten this approach to work on a local window xp1. installation, however it fails on a remote linux installation. Can anyone give me a hint what needs to be done? Here is the error message I get: HTTP Status 500 - -- -- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Wrapper cannot find servlet class org.apache.catalina.manager.HTMLManagerServlet or a class it depends on org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase java:540) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118 ) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:705) org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:683) java.lang.Thread.run(Thread.java:534) root cause java.lang.ClassNotFoundException: org.apache.catalina.manager.HTMLManagerServlet org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader java:854) org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader java:721) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase java:540) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118 ) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:705) org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:683) java.lang.Thread.run(Thread.java:534) note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs. -- -- Apache Tomcat/5.0.28 Thank you James T. Studebaker __ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail - 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 to make manager available to each virtual host
Bingo!! That did it. Thanks. Thank you James T. Studebaker - Original Message - From: alis asma alias [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Monday, February 28, 2005 4:12 AM Subject: Re: how to make manager available to each virtual host Try this: 1. go to catalina_home/conf/Catalina/ 2. open the first host folder . In my case, the first host is localhost. 3. Let's named the first host as localhost and the second host is X. So copy the content of the localhost into the X host. 4. restart the tomcat. 5. Try to access the manager for the X host. I've tried those steps and it worked. --- James T. Studebaker [EMAIL PROTECTED] wrote: Leaves I am running tomcat 5.0.28 on a linux fedora core 2 machine. I have configured virtual hosts for tomcat. I wish to make the manager application available to each vertual host that I have configured so that users can deploy applications to their account. What I did is add a context to each virtual host and defined the varables for the context exactly as they are defined in the context found in the localhost host. I have gotten this approach to work on a local window xp1. installation, however it fails on a remote linux installation. Can anyone give me a hint what needs to be done? Here is the error message I get: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Wrapper cannot find servlet class org.apache.catalina.manager.HTMLManagerServlet or a class it depends on org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:540) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118 ) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:705) org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:683) java.lang.Thread.run(Thread.java:534) root cause java.lang.ClassNotFoundException: org.apache.catalina.manager.HTMLManagerServlet org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader .java:854) org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader .java:721) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:540) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118 ) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:705) org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:683) java.lang.Thread.run(Thread.java:534) note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs. Apache Tomcat/5.0.28 Thank you James T. Studebaker __ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail - 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]
how to make manager available to each virtual host
I am running tomcat 5.0.28 on a linux fedora core 2 machine. I have configured virtual hosts for tomcat. I wish to make the manager application available to each vertual host that I have configured so that users can deploy applications to their account. What I did is add a context to each virtual host and defined the varables for the context exactly as they are defined in the context found in the localhost host. I have gotten this approach to work on a localwindow xp installation, however it fails on a remote linux installation. Can anyone give me a hint what needs to be done? Here is the error message I get: HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Wrapper cannot find servlet class org.apache.catalina.manager.HTMLManagerServlet or a class it depends on org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) java.lang.Thread.run(Thread.java:534) root cause java.lang.ClassNotFoundException: org.apache.catalina.manager.HTMLManagerServlet org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:854) org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:721) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) java.lang.Thread.run(Thread.java:534) note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs. Apache Tomcat/5.0.28 Thank youJames T. Studebaker
Re: how to make manager available to each virtual host
LeavesHi, I have opened a subject with a similar context to the yours under Tomcat For Multiple Users title. Please, can you explain me in more details (if possible step by step) how did you exactly configured the afore mentioned virtual hosts and the manager application for these virtual hosts. Thanks Ferad Zyulkyarov! - Original Message - From: James T. Studebaker To: tomcat-user@jakarta.apache.org Sent: Monday, February 28, 2005 5:15 AM Subject: how to make manager available to each virtual host I am running tomcat 5.0.28 on a linux fedora core 2 machine. I have configured virtual hosts for tomcat. I wish to make the manager application available to each vertual host that I have configured so that users can deploy applications to their account. What I did is add a context to each virtual host and defined the varables for the context exactly as they are defined in the context found in the localhost host. I have gotten this approach to work on a local window xp installation, however it fails on a remote linux installation. Can anyone give me a hint what needs to be done? Here is the error message I get: HTTP Status 500 - -- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Wrapper cannot find servlet class org.apache.catalina.manager.HTMLManagerServlet or a class it depends on org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) java.lang.Thread.run(Thread.java:534) root cause java.lang.ClassNotFoundException: org.apache.catalina.manager.HTMLManagerServlet org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:854) org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:721) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) java.lang.Thread.run(Thread.java:534) note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs. -- Apache Tomcat/5.0.28 Thank you James T. Studebaker
virtual host names
Hello, I'm working with Tomcat 5.0 in a stock (out-of-the-box) configuration. I can access the webserver using a URL based on the real (actual) hostname, but if I use an alias (virtual host), I get the message: connection refused when attempting to contact I know there is nothing wrong per-se with the alias itself, because I can access other web applications (in other app servers) on that same host using the alias. What do I change in the configuration to enable virtual hostnames in accessing URLs? thanks for any info. joe -- Open WebMail Project (http://openwebmail.org) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: virtual host names
Do you want an alias (two domain names pointing to the same app) or a virtual host (separate apps each with is own domain name hosted on the same server and IP)? Alias: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html#Host%20Name%20Aliases Virtual Host: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/defaultcontext.html Doug - Original Message - From: joseph panico [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Thursday, January 20, 2005 10:53 PM Subject: virtual host names Hello, I'm working with Tomcat 5.0 in a stock (out-of-the-box) configuration. I can access the webserver using a URL based on the real (actual) hostname, but if I use an alias (virtual host), I get the message: connection refused when attempting to contact I know there is nothing wrong per-se with the alias itself, because I can access other web applications (in other app servers) on that same host using the alias. What do I change in the configuration to enable virtual hostnames in accessing URLs? thanks for any info. joe -- Open WebMail Project (http://openwebmail.org) - 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]
More then one appBase per virtual Host...
I was wonder if I could have more than one *|appBase|* per host. or what if I wanted my host to have more then one *|appBase. How would I configure this or can it be configure at all??? May I could make two host with the same virtual host Name??? EX: Host name=localhost debug=0 appBase=/var/www/html/ unpackWARs=true autoDeploy=true deployOnStartup=true xmlValidation=false xmlNamespaceAware=false /Host Host name=localhost debug=0 appBase=/home/*/public_html unpackWARs=true autoDeploy=true deployOnStartup=true xmlValidation=false xmlNamespaceAware=false /Host I know that my imagination is really out ther now!!! Any comment is appreciated. Thank you for your time. -- Dwayne A. Ghant Application Developer Temple University 215.204. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: More then one appBase per virtual Host...
Anybody want to take a shoot at this Dwayne Ghant wrote: I was wonder if I could have more than one *|appBase|* per host. or what if I wanted my host to have more then one *|appBase. How would I configure this or can it be configure at all??? May I could make two host with the same virtual host Name??? EX: Host name=localhost debug=0 appBase=/var/www/html/ unpackWARs=true autoDeploy=true deployOnStartup=true xmlValidation=false xmlNamespaceAware=false /Host Host name=localhost debug=0 appBase=/home/*/public_html unpackWARs=true autoDeploy=true deployOnStartup=true xmlValidation=false xmlNamespaceAware=false /Host I know that my imagination is really out ther now!!! Any comment is appreciated. Thank you for your time. -- Dwayne A. Ghant Application Developer Temple University 215.204. [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: More then one appBase per virtual Host...
On Wed, Jan 05, 2005 at 11:35:33AM -0800, Dwayne Ghant wrote: : Anybody want to take a shoot at this Sure, I'll take a stab. A little patience, please -- some (many?) of us have day gigs in which it's none too proper to answer list questions on company time. : I was wonder if I could have more than one *|appBase|* per host. I'm not quite sure I understand, so why not try to rephrase the question? What's your end-goal? It may have nothing to do with the appBase attr. : Host name=localhost debug=0 appBase=/home/*/public_html I think I see, now... Instead of trying to stick everything in the user's homedir, why not just create a separate area and have each user put their webapps there? For example: appBase=/some/dir/tomcat_users and under that dir, you'd have user1/WEB-INF/ user2/ etc. btw, do you really want to put all users' webapps under the same container? That may be asking for a headache, in all but the most basic usage scenarios. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
New user Virtual host problem
Hi all, I have previously setup tomcat 5.x running on apache 1.3.x. Everything works fine and I'm learning lots as I go, although I have run into a problem with adding new domains to my apache. I have setup another site in the webapps directory however apache will only serve it using my primary machine ip, e.g. http://192.168.0.5/newsite which then gets redirected to my newsite on port 8080. I want to be able to have http://192.168.0.6 just go to that new site, however when I place that in my httpd.conf it does not work. Is there some docs which explain adding VirtualHosts to apache which point to the tomcat webapps directory? Thank you for any help, Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Virtual Host Stop/Start Questions
Hi there, I'm using Tomcat 4.1.27 on AIX 5.2 I have a shared binary setup for Tomcat where: server.xml is the default instance server_vhost1.xml is one of the dev instances I have made a config change to the server_vhost1.xml file and I need to implement that change. In order to do so, I imagine I need to recycle tomcat. My question is: Can I recycle JUST that one instance of Tomcat without effecting the main Tomcat instance. i.e I know that I can start Tomcat with: /opt/freeware/tomcat/jakarta-tomcat-4.1.27/bin/startup.sh and I know that I can also start that virtual instance with: /opt/freeware/tomcat/jakarta-tomcat-4.1.27/bin/startup.sh -config /opt/freeware/ tomcat/jakarta-tomcat-4.1.27/conf/server_vhost1.xml\ |/usr/bin/logger -t tomcat.dev Can I also run: /opt/freeware/tomcat/jakarta-tomcat-4.1.27/bin/shutdown.sh -config /opt/freeware/ tomcat/jakarta-tomcat-4.1.27/conf/server_vhost1.xml\ |/usr/bin/logger -t tomcat.dev Thanks in advance! DJT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
authentication in virtual host redirecting to wrong index.jsp
I've just setup a new website as a subdomain of my primary website. My server setup contains Apache fronting Tomcat 4.x on a Unix server. I'm directing all traffic that goes to the Apache webserver to the Tomcat server and setting up my subdomains in the server.xml file. This all works fine except that the application on my subdomain uses form authentication and after a successful login, the redirect goes to the default Tomcat index.jsp file rather than the default index.jsp file for the application as its supposed to. The index.jsp page for the app is in the root dir of the app folder. If I don't configure the app as a subdomain, it works fine but as soon as I change the config to use the subdomain, it redirects to the wrong page. Some other info: Struts-based Jdk 1.4 MySQL db Below is the server.xml host config for my subdomain: Host name=securecoin.outernett.com debug=0 appBase=webapps/securecoin unpackWARs=true autoDeploy=true Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ !-- context resources for application -- Context path= docBase= debug=999 reloadable=true crossContext=true Realm className=org.apache.catalina.realm.JDBCRealm debug=999 driverName=com.mysql.jdbc.Driver connectionURL=jdbc:mysql://localhost:3306/myapp?user=dbUnameamp;password=dbpass userTable=userTable userNameCol=usernameField userCredCol=password userRoleTable=userRoleTable roleNameCol=userRoleField/ /Context /Host And my web.xml auth config: !-- Define the Login Configuration for this Application -- login-config auth-methodFORM/auth-method realm-nameSecure Coin Invoice Application/realm-name form-login-config form-login-page/login/login.jsp/form-login-page form-error-page/login/error.jsp/form-error-page /form-login-config /login-config - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FW: Virtual host (JSP) in Apache+Tomcat+Mod_jk
Batpurev wrote: Dear all, I am sure the list is always talking and discussing about Virtual host (JSP) in Apache+Tomcat+Mod_jk problems. Though I need some advices from experts or experienced people in this list. There are three (sometimes complex) steps to take: 1. Setup Tomcat VHost 2. Setup Apache VHost 3. Setup mod_jk2 URI mapping For step 1, test it with Tomcat's regular Coyote HTTP connector. You must be able to access your web app as http://vhost.domain.com:8080/path/ For step 2, check Apache http://vhost.domain.com/ For step 3, it is recomended to make specific URI maps and map just the URI you wish to go to Tomcat. Other that this, I had no issues in the past. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Virtual host (JSP) in Apache+Tomcat+Mod_jk
Hello, I know that what I missed for years when trying to get this working was that Tomcat has to have virtual hosts set up also. What to do is remove Apache from the equation altogether and get www.virtual-host-1.com:8080 working on tomcat. This is done by copying the Host section in server.xml and changing the name of the host from localhost to www.virtual-host-1.com. Then you can make another copy for the next host etc. Hope this helps, Andoni. - Original Message - From: Batpurev [EMAIL PROTECTED] Newsgroups: gmane.comp.jakarta.tomcat.user Sent: Tuesday, November 02, 2004 5:47 AM Subject: FW: Virtual host (JSP) in Apache+Tomcat+Mod_jk Dear all, I am sure the list is always talking and discussing about Virtual host (JSP) in Apache+Tomcat+Mod_jk problems. Though I need some advices from experts or experienced people in this list. I have Apache 2.0.49 Tomcat - 4.1.30 Mod2_jk Need to do some JSP virtual hosts. I have read many guides, manuals from internet that I could find with no luck. I think that my configuration for httpd.conf, server.xml, workers2.properties and jk2.properties are all correct. But the problem is virtual hosts doesnot come up. When accessing www.virtual-host-1.com http://www.virtual-host-1.com/ instead Tomcat default page is shown. I tried many different configuration with no luck. What could be the reason for this? I tried changing appBase, docBase, path directives in the server.xml file. But when I open www.virtual-host-1.com/virtual-host-1/ then it shows the website I want to see when accessing www.virtual-host-1.com http://www.virtual-host-1.com/ which is in /Catalina_home/webapps/virtual-host-1/ directory. I tried appBase=//Catalina_home/webapps/virtual-host-1 etc., Please advice me ASAP, Thank you in advance, Purvee - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Virtual host (JSP) in Apache+Tomcat+Mod_jk
Dear all, I am sure the list is always talking and discussing about Virtual host (JSP) in Apache+Tomcat+Mod_jk problems. Though I need some advices from experts or experienced people in this list. I have Apache 2.0.49 Tomcat - 4.1.30 Mod2_jk Need to do some JSP virtual hosts. I have read many guides, manuals from internet that I could find with no luck. I think that my configuration for httpd.conf, server.xml, workers2.properties and jk2.properties are all correct. But the problem is virtual hosts doesnot come up. When accessing www.virtual-host-1.com http://www.virtual-host-1.com/ instead Tomcat default page is shown. I tried many different configuration with no luck. What could be the reason for this? I tried changing appBase, docBase, path directives in the server.xml file. But when I open www.virtual-host-1.com/virtual-host-1/ then it shows the website I want to see when accessing www.virtual-host-1.com http://www.virtual-host-1.com/ which is in /Catalina_home/webapps/virtual-host-1/ directory. I tried appBase=//Catalina_home/webapps/virtual-host-1 etc., Please advice me ASAP, Thank you in advance, Purvee
FW: Virtual host (JSP) in Apache+Tomcat+Mod_jk
Dear all, I am sure the list is always talking and discussing about Virtual host (JSP) in Apache+Tomcat+Mod_jk problems. Though I need some advices from experts or experienced people in this list. I have Apache 2.0.49 Tomcat - 4.1.30 Mod2_jk Need to do some JSP virtual hosts. I have read many guides, manuals from internet that I could find with no luck. I think that my configuration for httpd.conf, server.xml, workers2.properties and jk2.properties are all correct. But the problem is virtual hosts doesnot come up. When accessing www.virtual-host-1.com http://www.virtual-host-1.com/ instead Tomcat default page is shown. I tried many different configuration with no luck. What could be the reason for this? I tried changing appBase, docBase, path directives in the server.xml file. But when I open www.virtual-host-1.com/virtual-host-1/ then it shows the website I want to see when accessing www.virtual-host-1.com http://www.virtual-host-1.com/ which is in /Catalina_home/webapps/virtual-host-1/ directory. I tried appBase=//Catalina_home/webapps/virtual-host-1 etc., Please advice me ASAP, Thank you in advance, Purvee
Re: Tomcat, mod_jk, Apache and virtual host
Will this help? http://www.mail-archive.com/[EMAIL PROTECTED]/msg136432.html On Sun, 3 Oct 2004, Glen Ezkovich wrote: Date: Sun, 3 Oct 2004 16:55:10 -0500 From: Glen Ezkovich [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Tomcat, mod_jk, Apache and virtual host We have set up Tomcat and Apache using mod_jk and are using virtual hosting on both. We can throw a jsp page into our default directory and it displays fine so we know things work. We have serveral servlets to deploy for each virtual host and we'd rather not make entries in the main server.xml for each contex. We'd also like to be able to set a default servlet for each virtual host. Is there a way to do this in each appBase? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat, mod_jk, Apache and virtual host
Thanks Alex, Its a good resource but, we were hoping to be able to define the context some where besides the server.xml, such as in the appBase. I've run across mentions of using xml fragments for this, but as yet haven't been able to find out much. If anyone knows about how this can be done, I'd appreciate hearing about it. On Oct 6, 2004, at 6:12 AM, Alex wrote: Will this help? http://www.mail-archive.com/[EMAIL PROTECTED]/ msg136432.html On Sun, 3 Oct 2004, Glen Ezkovich wrote: Date: Sun, 3 Oct 2004 16:55:10 -0500 From: Glen Ezkovich [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Subject: Tomcat, mod_jk, Apache and virtual host We have set up Tomcat and Apache using mod_jk and are using virtual hosting on both. We can throw a jsp page into our default directory and it displays fine so we know things work. We have serveral servlets to deploy for each virtual host and we'd rather not make entries in the main server.xml for each contex. We'd also like to be able to set a default servlet for each virtual host. Is there a way to do this in each appBase? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Glen Ezkovich HardBop Consulting glen at hard-bop.com http://www.hard-bop.com - new and improved site coming soon A Proverb for Paranoids: If they can get you asking the wrong questions, they don't have to worry about answers. - Thomas Pynchon Gravity's Rainbow - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat, mod_jk, Apache and virtual host
We have set up Tomcat and Apache using mod_jk and are using virtual hosting on both. We can throw a jsp page into our default directory and it displays fine so we know things work. We have serveral servlets to deploy for each virtual host and we'd rather not make entries in the main server.xml for each contex. We'd also like to be able to set a default servlet for each virtual host. Is there a way to do this in each appBase? Glen Ezkovich HardBop Consulting glen at hard-bop.com http://www.hard-bop.com - new and improved site coming soon A Proverb for Paranoids: If they can get you asking the wrong questions, they don't have to worry about answers. - Thomas Pynchon Gravity's Rainbow - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat connected to apache via proxy gives virtual host problems
Yes, we did that. But it doesn't work. Is it possible at all using proxying and if so, how? Or should we make the switch to jk2? Hola, If you're defining the host in server.xml, you can make webapps/foo/bar the host's appBase. Yoav Shapira Millennium Research Informatics -Original Message- Hi, We are running tomcat5, proxied to apache. So far this has worked fine, but now we want to attach a virtual host to a subdirectory. So we have host1.com maps to webapps/ host2.com maps to webapps/foo/bar Now, on host2.com paths are relative to webapps rather than webapps/foo/bar. And thus, images can't be found and sessions don't work. I'm inclined to think since everything is proxied to localhost, tomcat doesn't even know it's supposed to be a virtual host. Is there a solution to this? TIA, Sandor Vroemisse - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat connected to apache via proxy gives virtual host problems
Hi, We are running tomcat5, proxied to apache. So far this has worked fine, but now we want to attach a virtual host to a subdirectory. So we have host1.com maps to webapps/ host2.com maps to webapps/foo/bar Now, on host2.com paths are relative to webapps rather than webapps/foo/bar. And thus, images can't be found and sessions don't work. I'm inclined to think since everything is proxied to localhost, tomcat doesn't even know it's supposed to be a virtual host. Is there a solution to this? TIA, Sandor Vroemisse - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat connected to apache via proxy gives virtual host problems
Hola, If you're defining the host in server.xml, you can make webapps/foo/bar the host's appBase. Yoav Shapira Millennium Research Informatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, September 02, 2004 11:36 AM To: [EMAIL PROTECTED] Subject: Tomcat connected to apache via proxy gives virtual host problems Hi, We are running tomcat5, proxied to apache. So far this has worked fine, but now we want to attach a virtual host to a subdirectory. So we have host1.com maps to webapps/ host2.com maps to webapps/foo/bar Now, on host2.com paths are relative to webapps rather than webapps/foo/bar. And thus, images can't be found and sessions don't work. I'm inclined to think since everything is proxied to localhost, tomcat doesn't even know it's supposed to be a virtual host. Is there a solution to this? TIA, Sandor Vroemisse - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat Virtual Host
sergio ulloa wrote: Hello Guys, I'm trying to create a new virtual host. but when I test it I get cannot find server. If you know how to do it, please help me. I have spend around two days. Did you make an entry on the DNS server ? Pedro - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat Virtual Host
Hello Guys, I'm trying to create a new virtual host. but when I test it I get cannot find server. If you know how to do it, please help me. I have spend around two days. Thanks Serg
RE: Virtual Host configuration in Tomcat
Hi all, i need to configure virtual hosting on tomcat 5.0 what I would like to do, is when I enter http://localhost:8080 it behaves exactly like when I enter http://localhost:8080/myapp can anyone give me some hints? Thanx in advance and regards Marco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Virtual Host configuration in Tomcat
T -Original Message- From: Marco Mistroni [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 29. Juli 2004 10:50 To: [EMAIL PROTECTED] Subject: RE: Virtual Host configuration in Tomcat Hi all, i need to configure virtual hosting on tomcat 5.0 what I would like to do, is when I enter http://localhost:8080 it behaves exactly like when I enter http://localhost:8080/myapp can anyone give me some hints? Thanx in advance and regards Marco - 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]
can a virtual host have its own privatly used SSL certificate?
hi; i am going to put my application in a shared hosting solution which does not provide any shared SSL support. is it possible to buy and put a SSL certificate in the scope of my virtual host in the hosting company. (i mean is it technically possible - disregarding the hosting company policy). Guy Katz Allot Communications [EMAIL PROTECTED] tel: +972 9 7619288 fax: +972 9 7443626 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can a virtual host have its own privatly used SSL certificate?
Guy Katz wrote: i am going to put my application in a shared hosting solution which does not provide any shared SSL support. is it possible to buy and put a SSL certificate in the scope of my virtual host in the hosting company. (i mean is it technically possible - disregarding the hosting company policy). Technical short answer: no. Regards, Graham -- smime.p7s Description: S/MIME Cryptographic Signature
RE: can a virtual host have its own privatly used SSL certificate ?
thanks but are you sure? i read some more and got the impression that when using apache+tomcat with ip based virtual hosting this can be achieved. did i misunderstood? thanks -Original Message- From: Graham Leggett [mailto:[EMAIL PROTECTED] Sent: Thursday, July 15, 2004 10:49 AM To: Tomcat Users List Subject: Re: can a virtual host have its own privatly used SSL certificate? Guy Katz wrote: i am going to put my application in a shared hosting solution which does not provide any shared SSL support. is it possible to buy and put a SSL certificate in the scope of my virtual host in the hosting company. (i mean is it technically possible - disregarding the hosting company policy). Technical short answer: no. Regards, Graham -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can a virtual host have its own privatly used SSL certificate ?
Guy Katz wrote: thanks but are you sure? I'm sure. i read some more and got the impression that when using apache+tomcat with ip based virtual hosting this can be achieved. The problem is that there can only be one certificate per listening port that tomcat is listening on, and the certificate can only have one name at a time (unless you use wildcard certs, but this is a special case). There can be many virtual hosts per listening port, but only one certificate, and the certificate can only have one name (at the moment) - thus your problem. :( Regards, Graham -- smime.p7s Description: S/MIME Cryptographic Signature
Re: can a virtual host have its own privatly used SSL certificate?
Hi, As I know, in order to use ssl on the tomcat, or apache you must make additional configurations regarding the webserver. Add modules and changing webserver configuration files. If you don't have the right to make this changes you can't have ssl. If you find a example more usefull.. If you can write a cd with Nero but without the cd-writer I guess you can make your webserver works without ssl module but with ssl certificate. Good luck, viorel - Original Message - From: Guy Katz To: 'Tomcat Users List' Sent: Thursday, July 15, 2004 12:55 Subject: RE: can a virtual host have its own privatly used SSL certificate? thanks but are you sure? i read some more and got the impression that when using apache+tomcat with ip based virtual hosting this can be achieved. did i misunderstood? thanks -Original Message- From: Graham Leggett [mailto:[EMAIL PROTECTED] Sent: Thursday, July 15, 2004 10:49 AM To: Tomcat Users List Subject: Re: can a virtual host have its own privatly used SSL certificate? Guy Katz wrote: i am going to put my application in a shared hosting solution which does not provide any shared SSL support. is it possible to buy and put a SSL certificate in the scope of my virtual host in the hosting company. (i mean is it technically possible - disregarding the hosting company policy). Technical short answer: no. Regards, Graham -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can a virtual host have its own privatly used SSL certificate?
Guy Katz wrote: hi; i am going to put my application in a shared hosting solution which does not provide any shared SSL support. is it possible to buy and put a SSL certificate in the scope of my virtual host in the hosting company. (i mean is it technically possible - disregarding the hosting company policy). SSL is done on IP level. I think (correct me if I'm wrong) that TLS is on application level, but I haven't heard of HTTP/TLS. What this boils down to is that a certificate can be issued for only one host on one physical IP. If you have virtual hosts, only one of them can have a certificate. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: can a virtual host have its own privatly used SSL certificate ?
thanks; you are relating to tomcat. i think in my situation they have a different listen port for every vhost internally such that the apache server delivers the http request on different ports for different vhost. does this simplify the problem? -Original Message- From: Graham Leggett [mailto:[EMAIL PROTECTED] Sent: Thursday, July 15, 2004 11:21 AM To: Tomcat Users List Subject: Re: can a virtual host have its own privatly used SSL certificate ? Guy Katz wrote: thanks but are you sure? I'm sure. i read some more and got the impression that when using apache+tomcat with ip based virtual hosting this can be achieved. The problem is that there can only be one certificate per listening port that tomcat is listening on, and the certificate can only have one name at a time (unless you use wildcard certs, but this is a special case). There can be many virtual hosts per listening port, but only one certificate, and the certificate can only have one name (at the moment) - thus your problem. :( Regards, Graham -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can a virtual host have its own privatly used SSL certificate ?
Guy Katz wrote: you are relating to tomcat. i think in my situation they have a different listen port for every vhost internally such that the apache server delivers the http request on different ports for different vhost. does this simplify the problem? This is the way to get around this problem - tell tomcat to listen on multiple ports, and run one certificate and one host per port. To make sure you stay on port 443, you'll need to have multiple IP addresses per box. Regards, Graham -- smime.p7s Description: S/MIME Cryptographic Signature
Re: can a virtual host have its own privatly used SSL certificate?
Nikola Milutinovic wrote: SSL is done on IP level. I think (correct me if I'm wrong) that TLS is on application level, but I haven't heard of HTTP/TLS. HTTP/TLS does exist, it just isn't supported by the major servers yet. Regards, Graham -- smime.p7s Description: S/MIME Cryptographic Signature
Re: can a virtual host have its own privatly used SSL certificate?
Graham Leggett wrote: Nikola Milutinovic wrote: SSL is done on IP level. I think (correct me if I'm wrong) that TLS is on application level, but I haven't heard of HTTP/TLS. HTTP/TLS does exist, it just isn't supported by the major servers yet. Good to hear that. IMHO, it will not be so much the server-side-support problem, but clients. There are a lot of clients out there and making them all compliant will take some time. Nix. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: can a virtual host have its own privatly used SSL certificate ?
Actually, you can as far as I know. What is required is a dedicated IP per virtual host. In the tomcat configuration you would add a SSL Connector / per virtual host, on port 443 (for example) eah bound to a separate IP - each with its own keystore - containing the cert for the relevant virtual host. This should be done in a separate Tomcat Service / and Engine /. Example: Service name=SSLHosts !-- SSLHOST PUBLIC SITE HTTPS CONNECTOR -- Connector port=443 address=192.168.128.199 maxPostSize=0 maxThreads=500 minSpareThreads=10 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 debug=0 scheme=https secure=true clientAuth=false keystoreFile=D:\certs\www.ssl.com.key keystorePass=passwd keystoreType=JKS sslProtocol=TLS / !-- SSLHOST2 PUBLIC SITE HTTPS CONNECTOR -- Connector port=443 address=192.168.128.200 maxPostSize=0 maxThreads=500 minSpareThreads=10 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 debug=0 scheme=https secure=true clientAuth=false keystoreFile=D:\certs\www.ssl2.com.key keystorePass=passwd keystoreType=JKS sslProtocol=TLS / Engine name=SSLHosts defaultHost=notfound Logger className=org.apache.catalina.logger.FileLogger / Host name=notfound Context path= docBase=D:\notfound reloadable=false / /Host !-- SSLHOST PUBLIC SITE HOST BLOCK -- Host name=www.ssl.com deployOnStartup=false autoDeploy=false Valve className=org.apache.catalina.valves.AccessLogValve directory=D:\logs\SSLHost prefix=www.ssl.com suffix=_tomcat.log pattern=common resolveHosts=false rotatable=false / Context path= docBase=D:\www\SSLHost\ROOT reloadable=true / Context path=/userimages docBase=D:\www\SSLHost\userimages / /Host !-- SSLHOST2 PUBLIC SITE HOST BLOCK -- Host name=www.ssl2.com deployOnStartup=false autoDeploy=false Valve className=org.apache.catalina.valves.AccessLogValve directory=D:\logs\SSLHost2 prefix=www.ssl2.com suffix=_tomcat.log pattern=common resolveHosts=false rotatable=false / Context path= docBase=D:\www\SSLHost2\ROOT reloadable=true / Context path=/userimages docBase=D:\www\SSLHost2\userimages / /Host /Engine /Service Hope that helps. Regards, Carl -Original Message- From: Graham Leggett [mailto:[EMAIL PROTECTED] Sent: 15 July 2004 10:49 AM To: Tomcat Users List Subject: Re: can a virtual host have its own privatly used SSL certificate? Guy Katz wrote: i am going to put my application in a shared hosting solution which does not provide any shared SSL support. is it possible to buy and put a SSL certificate in the scope of my virtual host in the hosting company. (i mean is it technically possible - disregarding the hosting company policy). Technical short answer: no. Regards, Graham -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can a virtual host have its own privatly used SSL certificate ?
Carl Olivier wrote: Actually, you can as far as I know. Technically no - what you're describing is the setup for a dedicated IP per host, not virtual host. You're describing the correct solution, it's just that calling it a virtual host is potentially confusing, as the virtual part is no longer there in this case. Regards, Graham -- smime.p7s Description: S/MIME Cryptographic Signature
RE: can a virtual host have its own privatly used SSL certificate ?
Hi. OK, thanks! My terminology bad! Carl -Original Message- From: Graham Leggett [mailto:[EMAIL PROTECTED] Sent: 15 July 2004 03:16 PM To: Tomcat Users List Subject: Re: can a virtual host have its own privatly used SSL certificate ? Carl Olivier wrote: Actually, you can as far as I know. Technically no - what you're describing is the setup for a dedicated IP per host, not virtual host. You're describing the correct solution, it's just that calling it a virtual host is potentially confusing, as the virtual part is no longer there in this case. Regards, Graham -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Virtual Host and servlet
Sorry I'm a newbie so I'm asking trivial questions for you but I can't find the error!!! If I put my cutpaste servlet from a tutorial I've no proble, it works. If I use a virtual host, a not found error appears. The web.xml is: web-app display-nameServlets test/display-name description Examples /description servlet servlet-namelogin/servlet-name servlet-classchapter2.login/servlet-class /servlet servlet-mapping servlet-namelogin/servlet-name url-pattern/servlet/chapter2.login/url-pattern /servlet-mapping /web-app The virtual host is working (the .jsp page works), I'm using it with apache through mod_jk in the http.conf I've put: JkWorkersFile = ... path and workers.properties it's OK I think JkLogFile=... it's ok JkMount /* worker1 and the next line I don't know if it's needed, I've tried with and without it. JkMount /servlet/* worker1 The error (translated) is: javax.servlet.ServletException: (Wrapper) can't find servlet class chapter2.login or a dependency class... The servlet is located inside the virtual host root, in a WEB-INF directory, inside a chapter2 directory, inside is login.class (it's a copy of the working application inside webapps directory served by Tomcat where it works, but from Apache it does not work) The error can be related to an error to find in the path or to a bad mod_jk parameter/configuration, but ¿where it is?, please help me. By the way, sorry, I'm a newbie, if some day I become an expert I promise to help the other newbies!!! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Jk2 URI mapping: global virtual host and jkstatus mappings coexist?
I have a forward facing HTTPD server that forwards certain requests via mod_proxy to my Tomcat box that has it's own version HTTPD and jk2 running. I actually have two instances of Jboss/Tomcat running on this machine, bound to different IP's Every request that is incoming to to the Jboss HTTPD server is really just a request for Tomcat, so I want to forward all of them to it, except that I would still like to have the jkstatus URI mapping to be picked up my JK2. So, in my ideal world, my workers2.properties file snipit would look like: [status:] [uri:/jkstatus/*] Group=status: [uri:192.168.2.85/*] channel=channel.un:${serverRoot}/sockets/jk2_dev.socket group=devlbgroup alias=dev [uri:192.168.2.87/*] channel=channel.un:${serverRoot}/sockets/jk2_stage.socket group=stagelbgroup alias=stage But, in this case, jkstatus isn't being picked up JK2, but is being forwarded to Tomcat. So, is there a way to have a global mapping to Tomcat, except for jkstatus?
Apache virtual host mapped to tomcat context
Hello, I am trying to setup apache virtual hosts mapped to tomcat contexts using apache 2.0, jk2 and tomcat 5. Everything in the connection apache-jk2-tomcat seems to work fine, except for the fact it seems I'm not able to configure apache virtual hosts mapped to particular tomcat contexts. What I'd like is having virtual hosts such as wiki.xxx.com blog.xxx.com mapped to tomcat contexts such as /wiki and /blog I have already read a lot of online documentation, tutorials and examples, but nothing seems to specifically cover this issue. The jk2 documentation specifies there should be a context property that should specify the webapp context we want to be called for a particular virtual host, but this doesn't seem to work. More specifically, I have this in my httpd.conf: VirtualHost * ServerAdmin [EMAIL PROTECTED] DocumentRoot c:/web/jspwiki ServerName wiki2.xxx.com ErrorLog logs/wiki2-error_log CustomLog logs/wiki2-access_log common Location / JkUriSet group lb JkUriSet context /wiki /Location /VirtualHost VirtualHost * ServerAdmin [EMAIL PROTECTED] DocumentRoot c:/web/jspwiki ServerName blog2.xxx.com ErrorLog logs/blog2-error_log CustomLog logs/blog2-access_log common Location / JkUriSet context /roller /Location /VirtualHost I've tried various entries in the Location tag (putting worker and uri properties as well, more or less by hazard because the documentation is not very clear), but none of them seem to matter: with this configuration, what happens is simply that if I call wiki2.xxx.com or blog2.xxx.com the normal tomcat root is served, and if I try to access the subcontexts (i.e.: wiki2.xxx.com/wiki) everything works normally. In workers2.properties I have the following: [logger] level=INFO [uriMap:] info=Maps the requests. Options: debug debug=1 [workerEnv:] info=Global server options timing=1 debug=1 [lb:lb] info=Default load balancer. debug=1 [channel.socket:localhost:8009] info=Ajp13 forwarding over socket host=localhost port=8009 debug=1 tomcatId=localhost:8009 group=lb [status:] info=Status worker, displays runtime informations [uri:/jkstatus/*] info=Display status information and checks the config file for changes. group=status: [uri:wiki2.xxx.com/] info=jspwiki context=/wiki group=lb debug=0 [uri:blog2.xxx.com/] info=roller weblogger context=/roller group=lb Any idea why this won't work? Many thanks, Davide Baroncelli. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: virtual host...
please, I really need some explanation about this.. or some link to it... thanks... Emerson Emerson Cargnin wrote: I'm using tomcat 5.0.19, apache 2.0.47, mod_jk... Tomcat generates a mod_jk.conf file with the following clause before the jkmount clauses: VirtualHost localhost ServerName localhost With this clause, apache does not create any mapping... This is my configuration of the listener... Is there any other property of this configuration? The virtualhost clause has to match with some apache configuration??? Listener className=org.apache.jk.config.ApacheConfig append=true forwardAll=false modJk=/usr/lib/apache2/mod_jk.so jkworkersConfig=/home/echo/download/jakarta-tomcat-5.0.19/worker.properties / -- Emerson Cargnin Analista de Sistemas Setor de Desenvolvimento de Sistemas - TRE-SC tel : (048) - 251-3700 - Ramal 3181 - 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: Virtual Host, Locations and Mod_JK2
No idea, never tried it. --Angus -Original Message- From: Nikola Milutinovic [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 1:11 AM To: Tomcat Users List Subject: Re: Virtual Host, Locations and Mod_JK2 Angus Mezick wrote: Use the uri property in workers2.properties instead of using JkUriSet. I do it that way and have no such problems: [uri:www.guidestar.org/*.jsp] group=lbWWW I know, I have this, too. But, still, why is Location approach not working as it should? 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]
Virtual host setup
Hello , I want to setup several virtual hosts in a single Tomcat. I want to use Name-based approach. For this approach, several virtual hosts share a single IP address. So I have to bind different web services to same address? for instance, the address of www.1.com and www.2.com is same and point to the same Tomcat server. Any detailed documents? -- Best regards, David mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Virtual host setup
Look at the tomcat configuration guide... The HOST element under server.xml is what your looking for. http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/host.html -Original Message- From: Yongsheng Yang [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 3:27 PM To: [EMAIL PROTECTED] Subject: Virtual host setup Hello , I want to setup several virtual hosts in a single Tomcat. I want to use Name-based approach. For this approach, several virtual hosts share a single IP address. So I have to bind different web services to same address? for instance, the address of www.1.com and www.2.com is same and point to the same Tomcat server. Any detailed documents? -- Best regards, David mailto:[EMAIL PROTECTED] - 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]