Hi,
I am new to apache tomcat.I would like to create a virtual host in my server. I tried to create a virtual host named www.companyname.com but it is not working properly.
[b]Steps i did for creating virtual host[/b]
[b]
Step1:[/b]
Downloaded jdk1.5.0
configured jakarta-tomcat-5.0.28
Downloaded apache_2.2.3-win32-x86-no_ssl
Downloaded the MOD_JK connector
[b]
Step:2[/b]
Added the mod_jk-apache-2.2.4.so into C:Program FilesApache Software FoundationApache2.2modules folder
Add the followinng line in the httpd.conf
LoadModule jk_module modules/mod_jk-apache-2.2.4.so
[b]
Step3:[/b]
# Include mod_jk configuration file
Include conf/mod-jk.conf
[b]Step4:[/b]
ServerName www.app1.com
DocumentRoot "C:/Program Files/Apache Software Foundation/Tomcat 5.0/webapps/test"
# Options Indexes FollowSymLinks MultiViews
Options None
AllowOverride None
Order allow,deny
allow from all
ErrorLog logs/app1-error.log
CustomLog logs/app1-access.log combined
# Send ROOT app. to worker named app1
JkMount /* app1
JkUnMount /images/* app1
#RewriteEngine On
#RewriteRule ^/(images/.+);jsessionid=w+$ /$1
[b]mod-jk.conf has[/b]
# Load mod_jk module
# Specify the filename of the mod_jk lib
LoadModule jk_module modules/mod_jk-apache-2.2.4.so
# Where to find workers.properties
JkWorkersFile conf/workers.properties
# Where to put jk logs
JkLogFile logs/mod_jk.log
# Set the jk log level [debug/error/info]
JkLogLevel info
# Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
# JkOptions indicates to send SSK KEY SIZE
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
# JkRequestLogFormat
JkRequestLogFormat "%w %V %T"
JkMount /* loadbalancer
[b]worker.properties file has[/b]
# Define Node1
workers.tomcat_home=C:/Program Files/Apache Software Foundation/Tomcat 5.0
workers.java_home=C:/Program Files/Java/jdk1.5.0
worker.list=app1
worker.app1.port=8009
worker.app1.host=localhost
worker.app1.type=ajp13
worker.app1.lbfactor=1
# Load-balancing behaviour
#worker.loadbalancer.type=lb
#worker.loadbalancer.balanced_workers=app1
#worker.loadbalancer.sticky_session=1
#worker.loadbalancer.local_worker_only=1
[b]
Note:[/b]
Apche and tomcat are running in the same port number 8080.
Please do the needful thing
Thanks
Deepa