Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Tomcat + IIS + Host

843835Jul 9 2002 — edited Sep 23 2003
Hi.
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

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 21 2003
Added on Jul 9 2002
14 comments
237 views