Hi All,
Probably this could be the most asked question. I have tried a few things
and they haven't worked out. So here I am, asking your help.
Environment:
Windows XP; Apache 2/Tomcat 5/mod_jk;
Apache Installation Directory: c:\Apache
Tomcat Installation Directory: c:\Tomcat
httpd.conf file (current modifications):
LoadModule jk_module modules/mod_jk.so
JkWorkersFile c:\Tomcat\conf\workers.properties
JkLogFile c:\Apache\logs/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %
JkMount /* ajp13
Contents of c:\Tomcat\webapps folder:
balancer
jsp-examples
ROOT
servlets-examples
woodpics
Contents of my hosts file in windows..
127.0.0.1 localhost joe woodpics.joe woodpics.localhost
Problem description:
I would like to configure a subdomain called "woodpics" (woodpics.localhost)
that would serve the files from the directory c:\Tomcat\webapps\woodpics.
http://woodpics.localhost/home.jsp ==> c:\Tomcat\webapps\woodpics\home.jsp
and
http://localhost/home.jsp ==> c:\Tomcat\webapps\ROOT\index.jsp
Things that I tried and did not work:
Added the following to httpd.conf:
NameVirtualHost *:80
<VirtualHost *:80>
ServerName localhost
DocumentRoot c:/Tomcat/webapps/
</VirtualHost>
<VirtualHost *:80>
ServerName woodpics.localhost
DocumentRoot c:/Tomcat/webapps/woodpics/
</VirtualHost>
When I access http://woodpics.localhost/home.jsp, I get a 404 error. When I
access http://woodpics.localhost/woodpics/home.jsp I get the home.jsp page
in c:\Tomcat\webapps\woodpics folder.
I tried my best to describe the problem. Hope someone can help me with this!
Thanks for reading!
Sincerely,
Joe.
_________________________________________________________________
Try Search Survival Kits: Fix up your home and better handle your cash with
Live Search!
http://imagine-windowslive.com/search/kits/default.aspx?kit=improve&locale=en-US&source=hmtagline
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]