The best solution, for me, is to ask for yur net Admin to get Aliases for the main DNS entry yu have actually.
For example:
MyMainHost.MyDomain.com is 192.245.23.45
So get a DNS alias MySecondHost.MyDomain.com with the same IP and so on...
In yur Apache's httpd.conf work with Bases Name Virtual Host by defining directives like:
NameVirtualHost 192.245.23.45
<VirtualHost 192.245.23.45>
ServerName MyMainHost.MyDomain.com
ServerAlias MyMainHost*
CustomLog /var/Apache/logs/MainHost_access common
../..
</VirtualHost>
<VirtualHost 192.245.23.45>
ServerName MySecondHost.MyDomain.com
ServerAlias MySecondHost*
CustomLog /var/Apache/logs/SecondHost_access common
../..
</VirtualHost>
or yu can just do smth clearer with
<VirtualHost 192.245.23.45>
Include conf/conf/SecondHost.conf
</VirtualHost>*
Once done, just add, inside yur <Engine> tag, smth like below:
<Host name="MyMainHost.MyDomain.com" debug="15" appBase="webapps">
<Context path="/manager"
docBase="/usr/local/Tomcat/webapps/manager"
debug="5" privileged="true">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="Manager_log." suffix=".txt" timestamp="true">
</Logger>
</Context>
<Context path="/MyServlet" docBase="MyServlet" debug="25">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="MyServlet_log." suffix=".txt" timestamp="true">
</Logger>
</Context>
</Host>
<Host name="MySecondHost.MyDomain.com" debug="15" appBase="webapps">
../..
</Host>
OR, BETTER !
Make has many instances of Tomcat as the number of yur VirtualHosts - and hence modify as appropriate the corresponding server.xml conf files -.
Hope this help.
Regards.
Jean-Luc B :O)
Rasputin wrote:
* Laxmikanth M.S. <[EMAIL PROTECTED]> [1238 13:38]:I have two host... one is the default and one more i have created.......the second host I am pointing to a DNS enrty.....I have even created a context for this host but when I open the site it show the below error check it at http://ftisites.sonata-software.com:8080even i want to remove te port number from the site...how that can be done "HTTP Status 500 - No Context configured to process this requestPlease post the Host entries from server.xml . There should be one for each virtual host you want, the trick is each host has it's own 'webapps' folder, set by the appBase attribute in the XML tag. The error below seems to suggest you haven't created a ROOT element for one of the vhosts. Name-based virtual hosting generally works a treat on tomcat; it's the same method Apache uses by default for it's virtual hosts.type Status report message No Context configured to process this request description The server encountered an internal error (No Context configured to process this request) that prevented it from fulfilling this request."
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>