Hi, My configuration : apache + tomcat5 + jk2
I've got my site "www.mysite.com" which points on my webapp. I'd like to create dynamicaly hosts like "user1.mysite.com", "user2.mysite.com", ... I manage my DNS, *.mysite.com is directed towards good IP of the Apache server ==> If i ping "user1.mysite.com" all is ok. In Apache, i have a virtual host www.mysite.com with an alias "*.monsite.com" ==> all is ok here. In tomcat : <Host name=www.myste.com debug="0" appBase="/home/jakarta-tomcat/webapps" unpackWARs="true" autoDeploy="true"> <Context path="" docBase="mysite" debug="0"/> <Alias>*.mysite.com</Alias> </Host> Here is my JK2 configuration : [uri:www.mysite.com/*] worker=ajp13:localhost:8019 ==> OK, www.mysite.com is ok and display my webapp But if i try : [uri:*.mysite.com] worker=ajp13:localhost:8019 or [uri:*.mysite.com] worker=ajp13:localhost:8019 ==> when i try to display "user1.mysite.com" , it doesn't work !!! In fact, i found that "*.mysite.com" is not redirected to Tomcat because if i try "user1.mysite.com/INDEX.JSP", it displays the source of my jsp file, it is not interpreted by Tomcat !!! Do you understand my problem ? Is there a solution ? Sorry for my poor english ;o( Thanx --------------------------------- Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Testez le nouveau Yahoo! Mail