打开 httpd.conf中的ssl服务配置模块,即将 #conf/extra/httpd-ssl.conf前的#去除,编辑VirtualHost _default_:443接口
<VirtualHost _default_:443>
ServerName postest.yistech.com
ServerAlias 172.31.2.2
#ServerAdmin aerchi@gmail.com
SSLEngine on
# SSLProtocol "TLSv1.2 TLSv1.1 TLSv1"
#SSLCertificateFile "cert/public.pem"
#SSLCertificateKeyFile "cert/private.key"
#SSLCertificateChainFile "cert/chain.pem"
ErrorLog "/mpay/soft/apache/logs/ssl_n_error_log"
TransferLog "/mpay/soft/apache/logs/ssl_n_access_log"
SSLCertificateFile "/mpay/soft/scrServkey/server.crt"
SSLCertificateKeyFile "/mpay/soft/scrServkey/server.key"
# ProxyRequests off
<Directory />
Options -Indexes +FollowSymLinks
AllowOverride None
Require all granted
</Directory>
ProxyRequests Off
ProxyPreserveHost On
ProxyVia Full
<Proxy *>
Require all granted
</Proxy>
<Location />
ProxyPass http://172.31.0.9:8081/
ProxyPassReverse http://172.31.0.9:8081/
</Location>
CustomLog "/mpay/soft/apache/logs/ssl_request_log" \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>