httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Hansen" <>
Subject [users@httpd] Help configuring subdomains.
Date Wed, 18 Oct 2006 21:59:25 GMT
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.

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/
JkWorkersFile c:\Tomcat\conf\
JkLogFile c:\Apache\logs/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %
JkMount /* ajp13

Contents of c:\Tomcat\webapps folder:

Contents of my hosts file in windows..       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
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 *:80>
	ServerName woodpics.localhost
	DocumentRoot c:/Tomcat/webapps/woodpics/

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!


Try Search Survival Kits: Fix up your home and better handle your cash with 
Live Search!

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message