This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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


do or die..!!!
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41064
    
  43
Install the web app in the ROOT context.


Ping & DNS - my free Android networking tools app
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
Marshal

Joined: Mar 22, 2005
Posts: 41064
    
  43
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to hide application name in url
 
Similar Threads
removing jsp page address in url
Hide PIA domain name for the external world
show/hide formfields
problem in paging using javascript
I want to make static URL