On Tue, 10 May 2005, Matthew P Puccio wrote:

> I'm running Tomcat 5.5.9 on a Windows2000 server. I am not running Apache
> and for various reasons won't be installing it. I'm not a Tomcat
> administrator so I may sound a bit clueless.
>
> I have tried to follow the instructions on
> http://www.ex-parrot.com/~pete/tomcat-vhost.html but am confused or don't
> understand.
>
> Here's the setup that I want:
> - I have the domain "smpdev.mwhglobal.com" that points at my Tomcat
> server's IP address.
> - My files are in /Tomcat5.5/SMP/
> - I have a Default.jsp page in /Tomcat5.5/SMP/jsp/Default.jsp. There is an
> entry in web.xml for this app for the Welcome file.
> - I have a folder /Tomcat5.5/conf/Catalina/SMP with SMP.xml. That file
> contains <Context path="" reloadable="true" docBase="SMP"> and my database
> connection info.
> - I've tried adding a new <Host> entry in server.xml, based on the info on
> the ex-parrot page (linked above):
>
> <Host name="$host" debug="0" appBase="webapps/$host"
>         unpackWARs="true" autoDeploy="true"
>     xmlValidation="false" xmlNamespaceAware="false">
>
> <Alias>$alias</Alias>
> </Host>
>
> What I don't know is what "$host" should be or "$alias" in the server.xml
> file.
> I also don't know if some of my folders should actually be called
> "smpdev.mwhglobal.com" instead of "SMP".

You can drop the <Alias>...</Alias> line in your installtion.

$host should be replaced by smpdev.mwhglobal.com

then your directory

webapps/smpdev.mwhglobal.com

should contain an unpacked copy of the site you're working with, including
your web.xml configuration file.


You need to create the configuration file in

conf/Catalina/smpdev.mwhglobal.com/ROOT.xml

<?xml version='1.0' encoding='utf-8'?>
<Context displayName="smpdev.mwhglobal.com" docBase="" path=""
workDir="work/Catalina/smpdev.mwhglobal.com/_">
</Context>


A caveat though is I haven't tested the instructions on Windows so you may
need to modify various things to make it go.

Yours,

Pete Stevens

--
Pete Stevens
[EMAIL PROTECTED]
http://www.ex-parrot.com/~pete/

  The last time humans crossed space to a destination was the Apollo 17 mission
  in 1972. In the 32 years since, no man has seen, with his own eyes, Earth as
 that beautiful, solitary blue sphere, and - reality check - no woman has ever
                                                                seen it at all.
                                                               -- James Cameron

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to