tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GOMEZ Henri <hgo...@slib.fr>
Subject RE: Bugzilla #512 is Bunk
Date Thu, 01 Mar 2001 21:53:41 GMT
The correct config for mod_jk is :

in httpd.conf :

JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile 	/var/log/httpd/mod_jk.log
# set it to error since warn just load to many apache
JkLogLevel 	error	

for virtuals

<VirtualHost host1.com:80>

DocumentRoot	"/home/httpd/host1/html"

<Directory "/home/httpd/host1/html">
    Options FollowSymLinks MultiViews
    AllowOverride AuthConfig
    Order allow,deny
    Allow from all
</Directory>

ServerName		host1.com
ServerAdmin 	webmaster@host1.com

ErrorLog 		/home/httpd/host1/var/log/httpd/error_log
TransferLog 	/home/httpd/host1/var/log/httpd/access_log

JkMount /app1/servlet/* workerhost1
JkMount /app1/*.jsp workerhost1

</VirtualHost>                                  

<VirtualHost host1.com:443>

DocumentRoot 	"/home/httpd/host1/htmls"

<Directory "/home/httpd/host1/htmls">
    Options FollowSymLinks MultiViews
    AllowOverride AuthConfig
    Order allow,deny
    Allow from all
</Directory>

Alias /usage/ "/home/httpd/host1/usage/"

<Directory "/home/httpd/host1/usage">
	Options Indexes MultiViews
	AllowOverride None
	Order allow,deny
	Allow from all
</Directory>

ServerName 		host1.com
ServerAdmin 	webmaster@host1.com

ErrorLog 		/home/httpd/host1/var/log/httpd/error_log
TransferLog 	/home/httpd/host1/var/log/httpd/access_log

SSLEngine on
SSLCipherSuite
ALL:!ADH:!EXP56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile
/home/httpd/host1/etc/httpd/conf/ssl.crt/host1.com-server.crt
SSLCertificateKeyFile
/home/httpd/host1/etc/httpd/conf/ssl.key/host1.com-server.key

<Files ~ "\.(cgi|shtml|phtml|php3?)$"> 
	SSLOptions +StdEnvVars 
</Files>

<Directory "/home/httpd/cgi-bin">
	SSLOptions +StdEnvVars 
</Directory>

SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
downgrade-1.0 force-response-1.0
CustomLog /home/httpd/host1/var/log/httpd/ssl_request_log "%t %h
%{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

JkMount /secureapp1/servlet/* workerhost1
JkMount /secureapp1/*.jsp workerhost1

</VirtualHost>

.....

Note the way to use SSL in this case to use secureapp1 webapp ;-)


Mime
View raw message