Re: [JK2] new uriMap using hostname:port
I do not know what is wrong, but I just updated the jk subdirectory from the CVS, built mod_jk2.so by running make in jk/native2, installed it to apache2/conf and tried different combinations of workers2.properties: START OF workers2.properties [logger] level=DEBUG [shm] file=/usr/local/apache2/logs/jk2.shm size=1048576 [uriMap:] debug=10 [status:status] debug=10 ## TRY1 #[uri:*] #alias=localhost #[uri:/jkstatus/*] #worker=status:status ## TRY2 #[uri:localhost] #debug=10 #[uri:localhost/jkstatus/*] #worker=status:status ## TRY3 #[uri:localhost:80] #debug=10 #[uri:localhost:80/jkstatus/*] #worker=status:status ## TRY4 [uri:www.i-com.com:8019] debug=10 [uri:www.i-com.com:8019/jkstatus/*] worker=status:status END OF workers2.properties All of them failed with the following message in error log [Tue Sep 24 10:13:07 2002] [notice] uriMap.mapUri() cannot find host localhost/ or for TRY4: [Tue Sep 24 10:18:36 2002] [notice] uriMap.mapUri() cannot find host www.i-com.com/ And I do not see messages like this in error log: [Sat Sep 21 18:09:40 2002] (debug ) [jk_uriMap.c (371)] uriMap.init() loaded host www.i-com.com I saw those messages when mappings worked. What can be wrong? Thanks, Dmitry Mladen Turk wrote: -Original Message- From: Dmitry Letin [mailto:[EMAIL PROTECTED]] :-) [uri:*] alias=localhost debug=10 [uri:www.i-com.com:80] debug=10 If the 80 is default server port then you have to ommit it Simply use the [uri:www.i-com.com] The port directive is used for non default ports only. MT. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [JK2] new uriMap using hostname:port
I have IP-based virtual host, not name-based ### ### http.conf ### ... Listen www.i-com.com:8019 LogLevel debug ... VirtualHost www.i-com.com:8019 ServerName www.i-com.com:8019 ... /VirtualHost ### ### workers2.properties ### [logger] level=DEBUG [shm] file=/usr/local/apache2/logs/jk2.shm size=1048576 [channel.socket:localhost:8013] port=8013 host=127.0.0.1 debug=10 [ajp13:localhost:8013] channel=channel.socket:localhost:8013 debug=10 [uriMap:] debug=10 [status:status] debug=10 [uri:www.i-com.com:8019] debug=10 [uri:www.i-com.com:8019/jkstatus/*] worker=status:status [uri:www.i-com.com:8019/*.jsp] worker=ajp13:localhost:8013 END OF workers2.properties Neither url works: http://www.i-com.com:8019/jkstatus http://www.i-com.com:8019/dhtml/10.jsp Messages in log: [Tue Sep 24 11:29:09 2002] [debug] ../../common/jk_uriMap.c(500): uriMap.mapUri() hostname www.i-com.com port 8019 uri /jkstatus [Tue Sep 24 11:29:09 2002] [notice] uriMap.mapUri() cannot find host www.i-com.com/ [Tue Sep 24 11:28:59 2002] [notice] mod_jk child init 1 -1 [Tue Sep 24 11:29:02 2002] [debug] ../../common/jk_uriMap.c(500): uriMap.mapUri() hostname www.i-com.com port 8019 uri /dhtml/10.jsp [Tue Sep 24 11:29:02 2002] [notice] uriMap.mapUri() cannot find host www.i-com.com/ What is that trailing slash in the cannot find host www.i-com.com/ ? Dmitry Mladen Turk wrote: From Dmitry Letin And I do not see messages like this in error log: [Sat Sep 21 18:09:40 2002] (debug ) [jk_uriMap.c (371)] uriMap.init() loaded host www.i-com.com Try setting LogLevel to debug in the httpd.conf Post the ServerName, Listen and VirtualHost from your httpd.conf And the worker2.properties But, Listen 8019 NameVirtualHost *:8019 VirtualHost *:8019 ServerName www.i-com.com:8019 /VirtualHost [uri:www.i-com.com:8019] [uri:www.i-com.com:8019/examples/*] context=/examples Should work. MT. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [JK2] new uriMap using hostname:port
Does not work for me for some reason. I have updated to latest version of CVS and recompiled mod_jk2.so for apache2. I looks that it does not load hosts at all. Before I had this in my jk2 log file: [Sat Sep 21 18:09:40 2002] (debug ) [jk_uriMap.c (371)] uriMap.init() loaded host www.i-com.com Now I do not have it In my workers2.properties among other stuff I have: [uri:*] alias=localhost debug=10 [uri:www.i-com.com:80] debug=10 [status:status] debug=10 [uri:*/jkstatus/*] worker=status:status debug=10 [uri:www.i-com.com:80/*.jsp] worker=ajp13:localhost:8013 debug=10 Neither of the mappings work, even jkstatus Did you have i chance to look at the simple patch that I used: http://www.mail-archive.com/tomcat-user%40jakarta.apache.org/msg66936.html List: tomcat-dev Subject: [JK2] new uriMap using hostname:port From: Mladen Turk [EMAIL PROTECTED] Date: 2002-09-23 17:53:50 [Download message RAW] Think I didn't miss something :) Here is how it works: All the mappings are done in the following way: hostname|*[:port] Meaning '*' is used for the default host. You can make now something like: [uri:*:8080] Info=will map the all the default servers on the port 8080 Aliases should work now: [uri:*] alias=localhost alias=www.apache.org I have dropped the reverse attribute for now. Its too clumsy, and it will be enabled if pcre is ever adopted. IIS (work to some extend) and Apache 1.3 need some extra tuning :-) Please do test. MT. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]