tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alejandro Arredondo <>
Subject Virtual hosts
Date Thu, 26 Apr 2001 06:28:29 GMT
How do I configure a virtual host in tomcat to work
with apache. I tried the following config in my httpd.conf with no success:

LoadModule jk_module modules/mod_jk.dll
JkWorkersFile "D:/progs/ins_files/tomcat/conf/"
JkLogFile "D:/progs/ins_files/tomcat/logs/mod_jk.log"
JkLogLevel error

<VirtualHost localhost:82>
    ServerName localhost:82
    DocumentRoot "D:/Internet Web Sites/bital/bital_bkp"
    ErrorLog logs/82error_log
    CustomLog logs/82access_log common  
    <Directory "D:/Internet Web Sites/bital/bital_bkp">
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    <IfModule mod_alias.c>
    Alias /servlets "D:/Internet Web Sites/bital/bital_bkp/classes"
    <Directory "D:/Internet Web Sites/bital/bital_bkp/classes">
        Options Indexes FollowSymLinks
    ScriptAlias /cgi-bin/ "D:/Internet Web Sites/bital/bital_bkp/cgi-bin/"
    <Directory "D:/Internet Web Sites/bital/bital_bkp/cgi-bin">
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
    <IfModule mod_dir.c>
        DirectoryIndex index.html index.htm
    JkMount /*.jsp ajp13
    JkMount /servlets/* ajp13        

In my server.xml I wrote:
	<Host name="localhost:82">
        	<Context path="/servlets" 
        		 docBase="d:/Internet Web Sites/bital/bital_bkp/classes" 
        		 reloadable="true" >

I want to test a simple servlet called HelloWorldExample in my system. Is my config wrong?.
Am I missing something like the web.xml? Where does
it go? I am new with tomcat and I would like to know
how to config it.
Thanks in advance

Free E-mail --->
Letodesigns & Programming Free e-mail
6MB limit

View raw message