permaculture playing cards
The moose likes Tomcat and the fly likes how to hide application name in url Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "how to hide application name in url" Watch "how to hide application name in url" New topic
Author

how to hide application name in url

Anand Gajjar
Ranch Hand

Joined: Feb 20, 2011
Posts: 31

i deployed my application on tomcat server.
but url appear in browser is like "www.mydomain.com/applcation_name".
now i want to hide this application name and only want to appear website name.
need help
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
Install the web app in the ROOT context.
Anand Gajjar
Ranch Hand

Joined: Feb 20, 2011
Posts: 31

How can i put this app. In root context. I deployed my app. Using parallel plesk panel. On panel i have only browse button to deploy on tomcat..
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
In Tomcat the ROOT web app directory is in the TOMCAT_HOME/webapps directory, next to all the other web apps.
Oliver Zampieri
Greenhorn

Joined: Feb 24, 2011
Posts: 1
You want to set up a virtual host.

The documentation in tomcat is quite exhaustive for this:
http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html


Oliver
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to hide application name in url
 
It's not a secret anymore!