tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alejandro Arredondo <bab...@letodesigns.every1.net>
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/workers.properties"
JkLogFile "D:/progs/ins_files/tomcat/logs/mod_jk.log"
JkLogLevel error

<VirtualHost localhost:82>
    ServerName localhost:82
    ServerAdmin babaji@letodesigns.8k.com
    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
    </Directory>        
    <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
    </Directory>    
    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
    </Directory>
    </IfModule>
    <IfModule mod_dir.c>
        DirectoryIndex index.html index.htm
    </IfModule>
    JkMount /*.jsp ajp13
    JkMount /servlets/* ajp13        
</VirtualHost>

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

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
Alejandro

_____________________________________________________________
Free E-mail --->
http://letodesigns.mail.everyone.net
Letodesigns & Programming Free e-mail
6MB limit
http://letodesigns.8k.com

Mime
View raw message