网站集约化建设会议请示,dw做网站投票,新型建筑模板,企业网站推广哪个公司好本文基于windows平台。
个人感觉使用apache配置起来比较繁琐#xff0c;而使用upupw或者xmpp等集成开发工具更方便。
在httpd.conf中#xff0c;将下一行的注释去掉#xff1a;LoadModule ssl_module modules/mod_ssl.so。另外#xff0c;千万不要注释掉下面的一行#…本文基于windows平台。
个人感觉使用apache配置起来比较繁琐而使用upupw或者xmpp等集成开发工具更方便。
在httpd.conf中将下一行的注释去掉LoadModule ssl_module modules/mod_ssl.so。另外千万不要注释掉下面的一行Include conf/extra/httpd-ssl.conf。具体原因不明。在httpd-vhosts.conf中添加如下代码
Listen 443
VirtualHost _default_:443ServerName aaServerAlias aaSSLEngine onSSLProxyEngine onSSLCertificateFile D:/UPUPW/Apache2/conf/server.crtSSLCertificateKeyFile D:/UPUPW/Apache2/conf/server.keyD:/UPUPW/htdocsDirectoryIndex index.html index.htm index.php default.php app.php u.phpDirectory D:/UPUPW/htdocsOptions FollowSymLinksAllowOverride AllRequire all granted/Directory
/VirtualHost注意上述DocumentRoot字段是说的html和php等服务程序的目录。Directory字段的值要填写正确。https证书和私钥放在conf目录下文件名也要填写正确。生成https数字证书的步骤如下文【openssl生成自签名证书 - CSDN App】http://t.csdnimg.cn/D19gR
apache执行httpd -k restart重启apache即可。