Re: Apache-Tomcat configuration question
Use a map. JK example: JkMount /*.jsp ajp13 JK2 example [uri:/examples/*.jsp] worker=ajp13:localhost:8009 John On Wed, 02 Jul 2003 12:28:18 -0300, Atreya Basu [EMAIL PROTECTED] wrote: Hello, Is it possible to have a directory where all the HTML files and file permissions etc. are handled by Apache and all the JSPs and servlets handled by Tomcat? I have Tomcat and Apache working successfully using JK2. What I want to do is the following: Say I have a directory: /mydirectory And I want to access HTML pages (handled by Apache) via: http://myhost/mydirectory/ But I want to access servlets and JSPs also (handled by Tomcat) via: http://myhost/mydirectory/ Is there any way to do this without having to create a separate directory for the JSPs and servlets? _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache-Tomcat configuration question
Could I ask you to elaborate a bit more? Say I have the following, would it be correct? [httpd.conf] Alias /myDir /var/web/someDir [server.xml] context path=/myDir docBase=/var/web/someDir / [workers2.proeprties] [uri:/myDir/*.jsp] worker=ajp13:localhost:8009 context=myDir In that case what about the Servlet mapping? _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: July 2, 2003 12:34 PM To: Tomcat Users List Subject: Re: Apache-Tomcat configuration question Use a map. JK example: JkMount /*.jsp ajp13 JK2 example [uri:/examples/*.jsp] worker=ajp13:localhost:8009 John On Wed, 02 Jul 2003 12:28:18 -0300, Atreya Basu [EMAIL PROTECTED] wrote: Hello, Is it possible to have a directory where all the HTML files and file permissions etc. are handled by Apache and all the JSPs and servlets handled by Tomcat? I have Tomcat and Apache working successfully using JK2. What I want to do is the following: Say I have a directory: /mydirectory And I want to access HTML pages (handled by Apache) via: http://myhost/mydirectory/ But I want to access servlets and JSPs also (handled by Tomcat) via: http://myhost/mydirectory/ Is there any way to do this without having to create a separate directory for the JSPs and servlets? _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - 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 configuration question
Most people don't mix servlets and JSP, in which case you would use something like [uri:/myDir/servlet/*] worker=ajp13:localhost:8009 In the case of something like Struts, servlets are mapped to URLs ending in *.do, so you would do the same as with JSP: [uri:/myDir/*.do] worker=ajp13:localhost:8009 John On Wed, 02 Jul 2003 12:46:04 -0300, Atreya Basu [EMAIL PROTECTED] wrote: Could I ask you to elaborate a bit more? Say I have the following, would it be correct? [httpd.conf] Alias /myDir /var/web/someDir [server.xml] context path=/myDir docBase=/var/web/someDir / [workers2.proeprties] [uri:/myDir/*.jsp] worker=ajp13:localhost:8009 context=myDir In that case what about the Servlet mapping? _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: July 2, 2003 12:34 PM To: Tomcat Users List Subject: Re: Apache-Tomcat configuration question Use a map. JK example: JkMount /*.jsp ajp13 JK2 example [uri:/examples/*.jsp] worker=ajp13:localhost:8009 John On Wed, 02 Jul 2003 12:28:18 -0300, Atreya Basu [EMAIL PROTECTED] wrote: Hello, Is it possible to have a directory where all the HTML files and file permissions etc. are handled by Apache and all the JSPs and servlets handled by Tomcat? I have Tomcat and Apache working successfully using JK2. What I want to do is the following: Say I have a directory: /mydirectory And I want to access HTML pages (handled by Apache) via: http://myhost/mydirectory/ But I want to access servlets and JSPs also (handled by Tomcat) via: http://myhost/mydirectory/ Is there any way to do this without having to create a separate directory for the JSPs and servlets? _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache-Tomcat configuration question
Could I do the following: [uri:myDir/Servlet/*] context=myDir Context path=/myDir docRoot =.. / Is that the proper use of the URI directive? _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: July 2, 2003 12:53 PM To: Tomcat Users List Subject: Re: Apache-Tomcat configuration question Most people don't mix servlets and JSP, in which case you would use something like [uri:/myDir/servlet/*] worker=ajp13:localhost:8009 In the case of something like Struts, servlets are mapped to URLs ending in *.do, so you would do the same as with JSP: [uri:/myDir/*.do] worker=ajp13:localhost:8009 John On Wed, 02 Jul 2003 12:46:04 -0300, Atreya Basu [EMAIL PROTECTED] wrote: Could I ask you to elaborate a bit more? Say I have the following, would it be correct? [httpd.conf] Alias /myDir /var/web/someDir [server.xml] context path=/myDir docBase=/var/web/someDir / [workers2.proeprties] [uri:/myDir/*.jsp] worker=ajp13:localhost:8009 context=myDir In that case what about the Servlet mapping? _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: July 2, 2003 12:34 PM To: Tomcat Users List Subject: Re: Apache-Tomcat configuration question Use a map. JK example: JkMount /*.jsp ajp13 JK2 example [uri:/examples/*.jsp] worker=ajp13:localhost:8009 John On Wed, 02 Jul 2003 12:28:18 -0300, Atreya Basu [EMAIL PROTECTED] wrote: Hello, Is it possible to have a directory where all the HTML files and file permissions etc. are handled by Apache and all the JSPs and servlets handled by Tomcat? I have Tomcat and Apache working successfully using JK2. What I want to do is the following: Say I have a directory: /mydirectory And I want to access HTML pages (handled by Apache) via: http://myhost/mydirectory/ But I want to access servlets and JSPs also (handled by Tomcat) via: http://myhost/mydirectory/ Is there any way to do this without having to create a separate directory for the JSPs and servlets? _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - 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 configuration question
I don't use JK2. It looks good to me, the easiest answer is test it and see. John On Wed, 02 Jul 2003 13:05:15 -0300, Atreya Basu [EMAIL PROTECTED] wrote: Could I do the following: [uri:myDir/Servlet/*] context=myDir Context path=/myDir docRoot =.. / Is that the proper use of the URI directive? _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: July 2, 2003 12:53 PM To: Tomcat Users List Subject: Re: Apache-Tomcat configuration question Most people don't mix servlets and JSP, in which case you would use something like [uri:/myDir/servlet/*] worker=ajp13:localhost:8009 In the case of something like Struts, servlets are mapped to URLs ending in *.do, so you would do the same as with JSP: [uri:/myDir/*.do] worker=ajp13:localhost:8009 John On Wed, 02 Jul 2003 12:46:04 -0300, Atreya Basu [EMAIL PROTECTED] wrote: Could I ask you to elaborate a bit more? Say I have the following, would it be correct? [httpd.conf] Alias /myDir /var/web/someDir [server.xml] context path=/myDir docBase=/var/web/someDir / [workers2.proeprties] [uri:/myDir/*.jsp] worker=ajp13:localhost:8009 context=myDir In that case what about the Servlet mapping? _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca -Original Message- From: John Turner [mailto:[EMAIL PROTECTED] Sent: July 2, 2003 12:34 PM To: Tomcat Users List Subject: Re: Apache-Tomcat configuration question Use a map. JK example: JkMount /*.jsp ajp13 JK2 example [uri:/examples/*.jsp] worker=ajp13:localhost:8009 John On Wed, 02 Jul 2003 12:28:18 -0300, Atreya Basu [EMAIL PROTECTED] wrote: Hello, Is it possible to have a directory where all the HTML files and file permissions etc. are handled by Apache and all the JSPs and servlets handled by Tomcat? I have Tomcat and Apache working successfully using JK2. What I want to do is the following: Say I have a directory: /mydirectory And I want to access HTML pages (handled by Apache) via: http://myhost/mydirectory/ But I want to access servlets and JSPs also (handled by Tomcat) via: http://myhost/mydirectory/ Is there any way to do this without having to create a separate directory for the JSPs and servlets? _ Atreya Basu Developer, Greenfield Research Inc. e-mail: atreya (at) greenfieldresearch (dot) ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Apache/Tomcat Configuration Question
Did you change mod_jk.conf to point to document root where you are supposed to give apache doc root sample mod_jk.conf-- IfModule !mod_jk.c LoadModule jk_module /usr/local/apache2/modules/mod_jk.so /IfModule JkWorkersFile /tmp/workers.properties JkLogFile /usr/local/apache2/logs/mod_jk.log JkLogLevel debug VirtualHost xxx.xx.xx.xx ServerName www.xxx.com:80 aurora.quinnfable.com:/manager DocumentRoot-- here you got to give your apache document root --- -- -- /virtulhost -Original Message- From: John Green [mailto:[EMAIL PROTECTED]] Sent: Mon 9/23/2002 11:22 AM To: [EMAIL PROTECTED] Cc: Subject:Apache/Tomcat Configuration Question All, I have Apache and Tomcat integrated together using mod_jk. The problem is now when I hit my webserver, it always defaults to the root context of tomcat. No matter what I set in my Apache httpd.conf file it gets ignored. I have tried to setup a virtual server in my httpd.conf file to point to the docroot I want to serve up as the default, but it is ignored. Originally I had my Apache working with PHP, but since I installed Tomcat, I have been unable to figure out how to serve up both. Thanks, John Green __ Do you Yahoo!? New DSL Internet Access from SBC Yahoo! http://sbc.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] winmail.dat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Apache/Tomcat Configuration Question
On Mon, 23 Sep 2002, John Green wrote: All, I have Apache and Tomcat integrated together using mod_jk. The problem is now when I hit my webserver, it always defaults to the root context of tomcat. No matter what I set in my Apache httpd.conf file it gets ignored. I have tried to setup a virtual server in my httpd.conf file to point to the docroot I want to serve up as the default, but it is ignored. Originally I had my Apache working with PHP, but since I installed Tomcat, I have been unable to figure out how to serve up both. You're going to need to provide a lot more specifics if you expect anyone to give you specific advice. Like your conf files. And any relevant messages from the logs. Milt Epstein Research Programmer Integration and Software Engineering (ISE) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]