apache支持ssl的方法:
1.安裝配有SSL模塊的apache,例如:apache_2.2.8-win32-x86-openssl-0.9.8g
2.打開apache的配置文件httpd.conf,在配置文件中找到以下兩行代碼并去掉前面的#注釋符,代碼如:
LoadModule ssl_module modules/mod_ssl.so
Include conf/extra/httpd-ssl.conf
3.再修改httpd-ssl.conf文件里的兩個字段即可,如:
SSLCertificateFile "C:/Apache2.2/conf/server.crt"
SSLCertificateKeyFile "C:/Apache2.2/conf/server.key"