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 10.11.1.1 and registered with abcd.abc.com .
If I type
http://abcd.abc.com, then it should load the URL
http://abcd.abc.com/GVL/jsp/index.jsp. I have configurated the NameVirtualHost but if I tyep
http://abcd.abc.com, it says BAD Request.
So, I have to give full URL
http://abcd.abc.com/GVL/jsp/index.jsp to access the application.
Following is my virtualHost configuratino in httpd.conf file
< VirtualHost 10.11.1.1 >
ServerName abcd.abc.com
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.