apache配置:

<VirtualHost *:443>
    ServerName web.p2
.com
    ProxyPreserveHost On
    ProxyRequests Off
	
	SSLEngine on
	SSLCertificateFile "C:/Apache24/server.cer"
	SSLCertificateKeyFile "C:/Apache24/server.key"
	
	RewriteEngine On
	RewriteRule ^/$ /P2P/index.html [R]

    ProxyPass / http://127.0.0.1:8080/
    ProxyPassReverse / http://127.0.0.1:8080/

    ErrorLog logs/ssl.web.p2p.com_error_log
    CustomLog logs/ssl.web.p2
.com_access_log common
</VirtualHost>

  Win32平台不支持加密密钥,所以server.key不能有密码:

解密 openssl rsa -in server.key.org -out server.key

遇到一下错误则需要解密:

Apache2.4配置SSL后启动报错:AH02577: Init: SSLPassPhraseDialog builtin is not supported on Win32 (key file C:/Apache24/conf/server.key)

相关文章:

  • 2021-06-18
  • 2022-12-23
  • 2021-05-25
  • 2021-12-02
  • 2021-12-28
  • 2021-12-17
  • 2021-05-21
  • 2021-07-11
猜你喜欢
  • 2022-02-21
  • 2021-07-20
  • 2021-10-17
  • 2021-06-24
  • 2022-01-12
  • 2021-09-16
  • 2021-06-01
相关资源
相似解决方案