Link to home
Start Free TrialLog in
Avatar of Zolf
ZolfFlag for United Arab Emirates

asked on

Tomcat server setup


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>
Avatar of Zolf
Zolf
Flag of United Arab Emirates image

ASKER


please help
place webapp war in webapps directory and it will deploy to /filename
Avatar of Zolf

ASKER


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
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.

Avatar of Zolf

ASKER


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
it will work without particular context lines.
Avatar of Zolf

ASKER


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>
Avatar of Zolf

ASKER


anybody??
ASKER CERTIFIED SOLUTION
Avatar of gheist
gheist
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Zolf

ASKER

thanks