apache jboss ssl 配置
httpd.conf
?
Include "conf/mod_jk.conf"Include "conf/vhosts.conf" Include "conf/vhosts-s.conf"
?
?如果使用httpd-vhosts.conf 启动服务会失败, 因为 apache 自己引入过?! 但是在不同目录下啊
?
Include "conf/extra/httpd-vhosts.conf"
?
mod_jk.conf
?
# Load mod_jk module# Specify the filename of the mod_jk libLoadModule jk_module modules/mod_jk.so# Where to find workers.propertiesJkWorkersFile conf/workers.properties# Where to put jk logsJkLogFile logs/mod_jk.log# Set the jk log level [debug/error/info]JkLogLevel debug# Select the log formatJkLogStampFormat "[%a %b %d %H:%M:%S %Y]"# JkOptions indicates to send SSK KEY SIZE# Notes: # 1) Changed from +ForwardURICompat. # 2) For mod_rewrite compatibility, use +ForwardURIProxy (default since 1.2.24)# See http://tomcat.apache.org/security-jk.html JkOptions +ForwardKeySize +ForwardURICompatUnparsed -ForwardDirectories# JkRequestLogFormatJkRequestLogFormat "%w %V %T"
?
?
workers.properties
?
workers.tomcat_home =C:/dev/jboss-5.1.0.GA/server/default/deploy/jbossweb.sarworkers.java_home=C:/dev/jre160ps=\# Defining a worker named worker1 and of type ajp13worker.list=worker1# Set properties for worker1worker.worker1.type=ajp13worker.worker1.host=localhostworker.worker1.port=8009worker.worker1.lbfactor=50worker.worker1.cachesize=10worker.worker1.cache_timeout=600worker.worker1.socket_keepalive=1worker.worker1.socket_timeout=300?
vhosts.conf
?
NameVirtualHost *:80<VirtualHost www.h2.com:80>ServerName www.h2.comAlias /beta "C:/project/beta/www_root" DocumentRoot "C:/project/beta/www_root" <Directory "C:/project/beta/www_root"> Options FollowSymLinks Includes ExecCGI AllowOverride None Order allow,deny allow from all </Directory>JkUnMount /beta /*.htm worker1JkMount /beta /* worker1JkUnMount /beta /*.php worker1JkUnMount /beta /*.js worker1</VirtualHost>?
?
?
vhosts-s.conf
?
NameVirtualHost *:443<VirtualHost www.h2.com:443> ServerName www.h2.com:443ErrorLog "logs/error443.log" JkMount /beta/* worker1 SSLEngine on SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL SSLCertificateFile "conf/ssl.crt/server.crt" SSLCertificateKeyFile "conf/ssl.key/server.key" # BrowserMatch ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0 CustomLog "logs/ssl_request.log" "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x "%r" %b" </VirtualHost>?
?
?
?
?
?
?
?