Re: RewritingURL with Tomcat3.2.1
L, You need to add the [PT] parameter to your rewrite rule - it worked for me!! regards Scott Farrell http://www.icconsulting.com.au ic Consulting - integrating your business in a web world. We offer e-business consulting and perform services. We deliver high impact consulting, and fast turn around projects for our clients. Ask us about Web Content Management, Web Self Service, or working closer with your customers or suppliers. 0412 927 156, 02 9411 3622 mailto:[EMAIL PROTECTED] Lessault Jean-Luc To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> Subject: RewritingURL with Tomcat3.2.1 21/05/2001 06:33 PM Please respond to tomcat-user Hi all, I am using Tomcat 3.2.1 with Apache 1.3 and I have the following problem: I want to rewrite a path from a form like 'http://host:port/file.html' to something like 'http://host:port/ContextServlet/MyServletName?parameter=file.html'). (Note that the program works when i use the second URL form in the browser). So that, as it seems that Tomcat doesn't want to use .htaccess file, I decided to write the following instructions: LoadModule rewrite_module module/mod_rewrite.dll RewriteEngine On RewriteBase /ContextServlet/ RewriteRule ^file.html /ContextServlet/MyServletName?parameter=file.html. in tomcat.conf or server.xml but with no result. Any help will be greatly appreciate.
Re: Virtual Hosts
I think you need to upgrade to tomcat 3.2.1 - to get support for virtual hosting. Scott Bertone Advertising <[EMAIL PROTECTED]> 16/02/2001 03:41 AM Please respond to tomcat-user To: [EMAIL PROTECTED] cc: Subject: Virtual Hosts I am using tomcat 3.0 with Apache and mod_jk to run jsp. I have got it functioning for one domain by changing the server.xml: I works for the one domain. Problem is, I want to use jsp on other domains as well. When I run them, they look for the page.jsp on the domain I referenced in the server.xml. I am a total freshman at this stuff. Can anyone please offer specific examples as to how I may accomplish this? Thank you for your time. Andrea Do You Yahoo!? - Get personalized email addresses from Yahoo! Mail Personal Address - only $35 a year!
Re: Caching with Tomcat 3.2
It must be possible to detect a change, as in IBM WebSphere App Server - if you change any classes it dilegently goes through and drops any instance of any class (objects) that was related to the changed class - ie. it drops servlets that contain the changed class as a member, or if it is in a session variable it drops all the servlets. Scott Rick Roberts cc: Subject: Re: Caching with Tomcat 3.2 15/02/2001 03:28 PM Please respond to tomcat-user I don't think that it is a bug. It is the only way that it _CAN_ work. The .jsp file can't know that you have recompiled a bean or a java class that it is referencing. My experience is a bit limited but I also work with Netscape and things are the same there. I have to empty the cache directory and restart the engines when I mod a bean or recompile a referenced java class. I have become acustome to just clearing cache and bouncing server in these cases. I would be interested in comments from others about this. Thanks for letting me hang out with ya, Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
aliased name based virtual hosts apache/mod_jk/tomcat
Do I have to do a for each alias from an apache virtual host? ( I have some v.hosts with about a dozen names) I am using tomcat 3.2.1, mod_jk, apach 1.3.12-2 How do I get this to work (httpd.cnf): ServerName www.icconsulting.com.au ServerAlias w3 w3.icconsulting.com.au www icconsulting.com.au DocumentRoot /home/httpd/ic/ This works fine in apache, this is what I have in server.xml: do I just have to keep repeating these in server.xml? Thanx Scott
aliased name based virtual hosts apache/mod_jk/tomcat
Hi, tomcat 3.2.1, mod_jk, apach 1.3.12-2 How do I get this to work (httpd.cnf): ServerName www.icconsulting.com.au ServerAlias w3 w3.icconsulting.com.au www icconsulting.com.au DocumentRoot /home/httpd/ic/ Do I have to do a for each alias? ( I have some hosts with about a dozen names) This works fine in apache, this is what I have in server.xml: do I just have to keep repeating these? Thanx Scott
mod_jk and jhtml
Hi, I am probably after a developer to help me out. I have performed lots of debugging / testing / and reading code - so I hope i dont waste your time. I am using tomcat-mod-3.2.1-1 - that I found on www.rpmfind.net - so I didn't actually compile it myself. apache-1.3.12-2 from rehat 6.2, and tomcat-3.2.1-1 from rpmfind.net. I am trying to get tomcat to parse jhtml files - and serve them - much the same as jsp pages. Here is a bit of a debug trace: [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker, Found a mat ch ajp12 [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker [jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker, Found a mat ch ajp12 [jk_worker.c (123)]: Into wc_get_worker_for_name ajp12 [jk_worker.c (127)]: wc_get_worker_for_name, done found a worker I get the match ok from JkMount and it matches to my ajp12 no problem - but it doesn't kick off a wc_get_worker_for_name. I tried to follow your source code - I got as far as working out where map_uri_to_worker is called from, and that 406 is the line number, and it looks as though it returns a worker - aka ajp12. What is between that match and kicking of the actual worker into action? I tried on a gif file as well - and it seemed to process it OK as well. I noticed its mime-type in the debug trace from mod_jk as well. Do I need to set a particular mime type fro the jhtml file to be parsed as a jsp page? Or is the problem just some security checking somewhere? I got all this to work on tomcat 3.1 - but using the mod_jserv connector. But it seemed to send all files to the jvm - including static files - and made things quite slow.I am hoping to get the same functionality back - but faster under mod_jk. I appreciate any help you can give. Scott