赞
踩
一、配置APache
<VirtualHost *:443> # General setup for the virtual host, inherited from global configuration #DocumentRoot "/var/www/html" ServerName www.pwx.com # 古籍检索系统 ,重定向到tomcat 中古籍检索系统项目 ProxyPass /record http://127.0.0.1:8080/record ProxyPassReverse /record http://127.0.0.1:8080/record ErrorLog logs/ssl_error_log TransferLog logs/ssl_access_log LogLevel warn SSLEngine on SSLProtocol all -SSLv2 SSLCipherSuite DEFAULT:!EXP:!SSLv2:!DES:!IDEA:!SEED:+3DES SSLCertificateFile /etc/httpd/conf/cert/www.pwxvr.com_public.crt SSLCertificateKeyFile /etc/httpd/conf/cert/www.pwxvr.com.key SSLCertificateChainFile /etc/httpd/conf/cert/www.pwxvr.com_chain.crt </VirtualHost>
2.打开apache安装目录下的 httpd.conf 配置以下内容
<VirtualHost *:8081>
DocumentRoot /var/www/html
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://%{SERVER_NAME}$1 [L,R]
</VirtualHost>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。