1、配置httpd.conf.
在conf目录下的httpd_ssl.conf文件去掉注释。
2、在conf\extra\httpd-ssl.conf里面配置。如下:
<VirtualHost *:6443>
SSLEngine on ServerName app.octvisionland.com:6443 ServerAlias app.octvisionland.com:6443 ProxyPass / balancer://proxy/ stickysession=JSESSIONID nofailover=On ProxyPassReverse / balancer://proxy/ SSLCertificateFile "${SRVROOT}/conf/ssl/server.crt" SSLCertificateKeyFile "${SRVROOT}/conf/ssl/server.key" DocumentRoot "${SRVROOT}/htdocs" CustomLog "${SRVROOT}/logs/ssl_request.log" \ "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b" <Directory "${SRVROOT}/htdocs"> Options Indexes Includes FollowSymLinks AllowOverride AuthConfig Limit FileInfo Require all granted </Directory> ErrorLog "logs/lb-error.log" </virtualhost>
3、检查配置的命令: d:\Apache24\bin\httpd -t