Re: Virtual Hosting with WAR files
If I understand this setup correctly, you would be running one instance of Tomcat for all of your virtual hosts. This has the disadvantage that if one virtual host needs to be restarted, you will need to restart Tomcat for all of your virtual hosts. An alternative is to let Apache handle the virtual hosts and run multiple instances of Tomcat -- one instance per virtual host. This requires multiple mod_jk instances, each communicating across a unique port with an instance of Tomcat. Each Tomcat should be deployed to its own home dir w/ its own CATALINA_HOME pointing to that directory and with each Tomcat given its own start/stop.sh script that sets CATALINA_HOME. This is more complex to set up, and I'm not sure how many separate Tomcats this can handle, but it does allow you to have something like: http://customer_1.com http://customer_2.com ... http://customer_n.com and fix customer_n's problem without impacting other customers using the same box. Since I maintain a box with this setup, I can post sample config files if there is interest. Pete Stevens wrote: Try reading this, http://www.ex-parrot.com/~pete/tomcat-vhost.html It's a receipe for setting up tomcat to do virtual hosting and behave more like apache with regard to virtual hosts. Yours, Pete Stevens On Tue, 16 Aug 2005, Mahesh S Kudva wrote: Hi I have setup Tomcat+Apache2+mod_jk. I have 3 application in war files namely flie1.war, file2.war and file3.war. To deploy, I just put them in the deploy folder and access then using the urls: http://foo.com/file1 http://foo.com/file2 http://foo.com/file3 This works perfectly for me. I want to change this to simple urls as follows: http://file1.foo.com http://file2.foo.com http://file3.foo.com I have also read the notes on Virtual hosting: http://jakarta.apache.org/tomcat/connectors-doc- archive/jk2/jk2/vhosthowto.html Even though I am not able to configure Tomcat to connect to the war files as requested. How do I configure tomcat to connect to the correct war file as requested? Any help will be appreciated. Regards Thanks Mahesh S Kudva --- Robosoft Technologies - Partners in Product Development - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Pete Stevens [EMAIL PROTECTED] http://www.ex-parrot.com/~pete/ I'm a shareware signature! Send $2 if you use me, $10 for a manual. - 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: adding mime-type
What client browser are you using. MS IE can ignore the mime-type presented by the server and make decisions based on its own voodoo. See: http://www.spartanicus.utvinternet.ie/file_extensions_and_mime_types_on_the_web.htm http://www.microsoft.com/technet/prodtechnol/windowsserver2003/library/BookofSP1/e5a730ee-a68b-4789-8419-4de4c3c7950d.mspx [EMAIL PROTECTED] wrote: Hello, I have added a mimetype for the crt-extension to the $CATALINA_HOME/conf/web.xml-file. I have a file with this extension in the ROOT-webapp-directory. The ROOT-webapp has no web.xml-file. I also restarted tomcat. However, when I open the crt-file, it is still presented as a text-file. Any idea why this is? Am I doing something wrong? Do I need to do additional steps? I'm using tomcat 5.5.9. greetings and thanks, Michel Brabants - 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: Http Refferer
Oscar Mechanic wrote: Why would it get a null ? Every page has a referrer. Are you sure? What if I click on a bookmark or type in the URL manually? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Silent runtime replace of a class
This article may help... http://www.fawcette.com/javapro/2002_09/magazine/columns/proshop/ Gal Robert wrote: Hi, we have a new user requriement: to be able to modifiy the application without affecting user work. Is there any way to achieve this under tomcat? Currently we're building war file. Is there any way to replace a class (maybe jsp class) runtime, without restarting the tomcat? any information is welcome thanks. robert - 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: tomcat4.1.24 + apache_2.0.47 + connectors-jk2.0.2
Srini, For Linux, I get similar errors unless I write the LoadModule line as: LoadModule jk2_module modules/mod_jk2.so Srini wrote: Hi, I have a win2k machine trying to configure these. I am able to work apache and tomcat individually. When I try to connect these using jk2 getting into problems.. I have followed the John Turner win2k instructions. When ever I add -- LoadModule jk_module modules/mod_jk2-2.0.43.dll -- Include C:/Tomcat4.1/conf/auto/mod_jk.conf in httpd.con of apache and try to test using c:\apache\apache2\bin\apache.exe -t I am getting Syntax error on line 174 of C:/Apache/Apache2/conf/httpd.conf: Can't locate API module structure `jk_module' in file C:/Apache/Apache2/modules/ mod_jk2-2.0.43.dll: No error Any solution will be appreciated. Thanks - srini. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Charles Meier PeerPro, LLC. [EMAIL PROTECTED] http://www.peerpro.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]