Tomcat server setup

zolf
zolf used Ask the Experts™
on

Hello there,

i have tomcat server to run my webapp.i have setup the server.xml as follows. the problem is that when the users type in the website,they only get to tsee It works!!.what am i messing.please help

<Host name="www.website.com" appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">

                  <Context path="" docBase="rs_default" debug="0" reloadable="true"> </Context>
                  <Context path="rs" docBase="rs" debug="0" reloadable="true"> </Context>
                  <Alias>website.com</Alias>
                  <Alias>11.11.111.111</Alias>
        </Host>
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Author

Commented:

please help
Top Expert 2015

Commented:
place webapp war in webapps directory and it will deploy to /filename

Author

Commented:

thanks for your feedbacks.
can you please explain in breif these points
1. do i need to have two Context path
2. what are those variables in the Content path
Top Expert 2015

Commented:
https://tomcat.apache.org/tomcat-4.1-doc/config/context.html

they are mostly redundant... you can override settings for webapps this way. if you make war files yourself you can edit web.xml to include settings with deployment descriptor aka web.xml.

Author

Commented:

i went thought that link,but did not understand it.can you please give me an e.g. of it. my war file is in the webapps folder
Top Expert 2015

Commented:
it will work without particular context lines.

Author

Commented:

you mean it will work like this without context line

<Host name="www.website.com" appBase="webapps"
            unpackWARs="true" autoDeploy="true"
            xmlValidation="false" xmlNamespaceAware="false">

                  <Alias>website.com</Alias>
                  <Alias>11.11.111.111</Alias>
        </Host>

Author

Commented:

anybody??
Top Expert 2015
Commented:
Yes, you can redeploy webapps way you want with "lambda probe"

Author

Commented:
thanks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial