Using mod_jk with Apache Virtual Hosts
Hi, Looking for some help with the following please I have Apache HTTP Server set up to server three virtual hosts. Two of these I want to be serving Tomcat based content, the third serves purely static content. I have this working of a fashion, as I have Jkmount directives inside the two virtualhost sections of httpd.conf that map to the virtualhosts that will server tomcat based content. The relevant section of httpd.conf looks like this ServerName VH1 DocumentRoot htdocs ServerName VH2 DocumentRoot htdocs/VH2 JkMount /* ajp13 ServerName VH3 DocumentRoot htdocs/VH3 JkMount /* ajp13 So what I now have is three working virtual hosts, with both VH2 and VH3 redirected to tomcat. What I actually need is for VH2 to redirect to a webapp named "VH2" running inside tomcat, and likewise for VH3 to redirect to a webapp named "VH3". At the moment I need to put VH2/VH2 and VH3/VH3 into my browser for this to work. Both webapps are running in the same instance of Tomcat. Hope I've explained this in an understandable manner, some help would be appreciated. many thanks Dave
RE: Tomcat on Solaris 2.9
I use Tomcat 4.1.18 on Solaris 9, running j2sdk1.4.1, with the system fully patched with no problems Rgds D -Original Message- From: Steve Gums [mailto:[EMAIL PROTECTED] Sent: 31 March 2003 23:28 To: Tcat Users Subject: Tomcat on Solaris 2.9 Is anyone out there running tomcat 4.1.24 or 4.1.18 on Solaris 2.9? If you are have you seen any issues with tomcat locking up? Steve Gums - 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]
Commercial Support for Tomcat
Hi, Does anyone have any experience or knowledge of organisations offering commercial support for Tomcat? We are looking to use Tomcat, and I need to try and find an organisation that offers this type of service. Any suggestions would be appreciated, especially from anyone based in the UK or Europe. Many thanks, David
RE: Problems configuring Tomcat with Apache using mod_jk2
>It would help if you post the entries you added in httpd.conf for Tomcat. Also include your server.xml file for more information. I have modified httpd.conf as follows: JKWorkersFile "/opt/tomcat/conf/jk/workers.properties" JKLogFile "/opt/tomcat/logs/mod)jk.log" Include /opt/tomcat/conf/auto/mod_jk.conf Server.xml is as follows (standard apart from the references to mod_jk) factory org.apache.catalina.users.MemoryUserDatabaseFactory pathname conf/tomcat-users.xml usernamesa password driverClassName org.hsql.jdbcDriver url jdbc:HypersonicSQL:database mail.smtp.host localhost Many thanks, David -Original Message- From: Ben Ricker [mailto:[EMAIL PROTECTED] Sent: 04 March 2003 16:37 To: '[EMAIL PROTECTED]' Subject: Re: Problems configuring Tomcat with Apache using mod_jk2 You need to JkMount the /examples in httpd.conf. Something like "JkMount */examples blah" where "blah" is the name of your loadbalancer setup in workers.properties. It would help if you post the entries you added in httpd.conf for Tomcat. Also include your server.xml file for more information. Ben Ricker On Tue, 2003-03-04 at 10:36, David Godfrey wrote: > Hi, > > I'm having problems when trying to use Tomcat and Apache HTTP server > together, with mod_jk2. I have built Apache from the source, installed > Tomcat 4.1.18, and tested each individually (they seem to function > correctly). When I add in mod_jk2, both Apache and Tomcat still start > and function correctly, but there does not appear to be any > redirection taking place, (I can access http://localhost:8080/examples > for, but not http://localhost/examples). > > When I examine "error_log" in APACHE_HOME/logs, there are the > following 2 entries, but nothing that (to me) indicates an error: > > Apache/2.0.43 (Unix) mod_jk/1.2.1 configured -- resuming normal > operations > > File does not exist: /opt/apache/htdocs/examples > > The error/log file I have defined in httpd.conf for mod_jk2 is created > when I start Apache / Tomcat, but is empty. I am running Solaris 2.8, > Apache 2.0.43, Tomcat 4.1.18, and Java 1.4.1. > > I would really appreciate some ideas on how I could solve this > problem. > > Many thanks, > > D > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Ben Ricker <[EMAIL PROTECTED]> Wellinx.com - 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]
Problems configuring Tomcat with Apache using mod_jk2
Hi, I'm having problems when trying to use Tomcat and Apache HTTP server together, with mod_jk2. I have built Apache from the source, installed Tomcat 4.1.18, and tested each individually (they seem to function correctly). When I add in mod_jk2, both Apache and Tomcat still start and function correctly, but there does not appear to be any redirection taking place, (I can access http://localhost:8080/examples for, but not http://localhost/examples). When I examine "error_log" in APACHE_HOME/logs, there are the following 2 entries, but nothing that (to me) indicates an error: Apache/2.0.43 (Unix) mod_jk/1.2.1 configured -- resuming normal operations File does not exist: /opt/apache/htdocs/examples The error/log file I have defined in httpd.conf for mod_jk2 is created when I start Apache / Tomcat, but is empty. I am running Solaris 2.8, Apache 2.0.43, Tomcat 4.1.18, and Java 1.4.1. I would really appreciate some ideas on how I could solve this problem. Many thanks, D - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]