Scott Purcell wrote: > I have one webapp that I need to configure to a DNS Entry. > > Below is my server.xml. My DNS is www.theuniquepear.com and it lives under > webapps/unique. But with the below configuration, and when I try and hit the > url it goes here: > http://www.theuniquepear.com/ and does not go to the context of "unique"? > > Can anyone assist me here?
If you have multiple Host elements (and you'll probably use more as you go), create an appBase *directory* for each of them, so at the simplest your server.xml (relevant section) looks like: <Engine name="Standalone" defaultHost="localhost"> <Host name="localhost" appBase="webapps/localhost"/> <Host name="www.theuniquepear.com" appBase="webapps/unique"/> </Engine> Then, again simplified, create these three files: file {$CATALINA_HOME/conf/Catalina/localhost/ROOT.xml} contains: <Context path="" docBase="ROOT"/> file {$CATALINA_HOME/conf/Catalina/localhost/orders.xml} contains: <Context path="/orders" docBase="/home/ian/orders"/> file {$CATALINA_HOME/conf/Catalina/localhost/unique/ROOT.xml} contains: <Context path="" docBase="ROOT"/> Place your "unique" webapp in $CATALINA_HOME/webapps/unique/ROOT and restart, and it can be accessed at <http://www.theuniquepear.com> And that's it :-) HTH! -- Hassan Schroeder ----------------------------- [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]