I have deployed a site using Tomcat 5. However, one problem im facing is that when i type the URL http://sitename:8080 from a remote machine, then the default Apache page gets opened.. How can I disable this??? Kindly help...
That's the web app set up in the TOMCAT_HOME/webapps/ROOT directory. If you don't want it, remove its contents, or -if you always want people to access the web app you've deployed- make the default page do a redirect to your web app.
Thanks for your reply
However, Using both these methods, I will not be able to see the tomcat homepage anywhere.
My requirement is that the page should not be visible to any remote computer, however at the same time, it should be visible to me as I need it for uploading web apps using Tomcat Manager.
Is there a way by which I can allow only certain IPs to view this page???
You can also add a <Host.....> section in "TOMCAT_HOME/conf/server.xml"
with the above Host config, you'll only be able to access the contents located in "TOMCAT_HOME/www/sitename.com" if it is called with "sitename.com" or "www.sitename.com" - localhost or 127.0.0.1 will still be the webapps folder.
If you then put a ROOT folder in "TOMCAT_HOME/www/sitename.com" then you can call the webpage without a context path
sitename.com:8080 = www/sitename.com/ROOT
sitename.com:8080/test = www/sitename.com/test
i have created the dir "www" then i placed the mysite.com.war file in www.
mysite.com dir is created automatically.
then i created Root dir in "mysite.com".
but its not working when i call "http://mysite.com/ ".
is it correct? if wrong how to call it in browser?
When you use a WAR file like mysite.com.war, then the name of the application will be mysite.com - this means that it should be called like this: http://sitename/mysite.com
What I wrote is that you put a ROOT (in uppercase) folder in (depending on what you've written in Host->appBase) www/sitename.com, and this ROOT folder will act as your web application available at /.
The only thing you do with this configuration is to mirror the default webapps folder, where you also have a ROOT folder available at /, and then can install additional web application next to the ROOT folder.