This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic


Anand Loganathan
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic