httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Hansen" <>
Subject RE: [users@httpd] Help configuring subdomains.
Date Wed, 18 Oct 2006 22:42:58 GMT
After googling for a while I came to know that some configuration changes 
need to be made to the  server.xml file for the subdomains to work.

So, I changed the server.xml as follows. Can you please tell me if I did it 
the right way??


    <Engine name="Catalina" defaultHost="localhost">

      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"

	<Host name="localhost" appBase="webapps"
       unpackWARs="true" autoDeploy="true"
       xmlValidation="false" xmlNamespaceAware="false">


	<Host name="woodpics.localhost" appBase="webapps\woodpics"
	unpackWARs="true" autoDeploy="true"
	xmlValidation="false" xmlNamespaceAware="false">

			<Context path="/" docBase=".">

			  <Resource name="jdbc/mySQLDB"
						   logAbandoned="true" />



>From: "Joe Hansen" <>
>Subject: [users@httpd] Help configuring subdomains.
>Date: Wed, 18 Oct 2006 21:59:25 +0000
>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 
>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 
>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:

Stay in touch with old friends and meet new ones with Windows Live Spaces

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