File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes NameVirtualHost Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "NameVirtualHost " Watch "NameVirtualHost " New topic


Anand Loganathan

Joined: Sep 13, 2003
Posts: 12
I need some help regarding the NameVirtualHost.

Following are the things I have completed.

1) I installed Apache 2.2 webserver and Tomcat 5.5 server.
2) I am able to access the without using port by using http://localhost/GVL/jsp/index.jsp

Now I have IP Address which is registered with a DNS name. By typing that DNS name,
i need to load the welcome file.
say for an example my IP is and registered with .
If I type, then it should load the URL
I have configurated the NameVirtualHost but if I tyep, it says BAD Request.
So, I have to give full URL to access the application.

Following is my virtualHost configuratino in httpd.conf file

< VirtualHost >

DocumentRoot "C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\GVL"
JkMount /*.jsp wrkr
JkMount /servlet/* wrkr
JkMount /*.do wrkr
JkMount /*.css wrkr
JkMount /*.* wrkr

DirectoryIndex index.jsp

< /VirtualHost >

Please let me know how do I make it by using DNS name
and where I am making mistake.
I agree. Here's the link:
subject: NameVirtualHost
It's not a secret anymore!