Tomcat + IIS + Host
843835Jul 9 2002 — edited Sep 23 2003Hi.
I have a problem with Tomcat.
I put some jsp in the directory d:\my_site.
I created a web application putting the following lines inside the file server.xml of tomcat:
<Context path="/site" docBase="d:\\my_site" crossContext="true" debug="1" reloadable="true" trusted="false"/>
Then i configured Tomcat with IIS and everything works well.
If i write http://localhost/site in the browser it works perfectly.
But how can i associate the domain www.mysite.com (that i bought some days ago) to go to the directory set in server.xml?
I configured another virtual directory in IIS: www.mysite.com that goes to the path d:\my_site, but it doesn't work.
I thought that i have to put also the tag <Host> inside server.xml before the tag <Context> but it does nothing.
I don't know if it's clear.
This problem occurs also if i don't use IIS becuause i don't know how to tell that if a user writes www.mysite.com in the browser the pages inside the physical path d:\my_site (or the files of the web application "site" under tomcat) must be processed.
Thanks for your help
Luke