老电脑装的winxp系统,下载的是upupw php5.4的,按论坛和百度的教程进行配置
在httpd.conf里去掉下面三个注释 LoadModule socache_shmcb_module modules/mod_socache_shmcb.so LoadModule ssl_module modules/mod_ssl.so Include conf/extra/httpd-ssl.conf生成自签名证书 openssl genrsa -out server.key 2048 openssl req -new -key server.key -out server.csr openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt Country Name (2 letter code) [AU]:cn State or Province Name (full name) [Some-State]:guangdong Locality Name (eg, city) []:shantou Organization Name (eg, company) [Internet Widgits Pty Ltd]:e Organizational Unit Name (eg, section) []: e Common Name (eg, YOUR name) []: e Email Address []:xxx@xxx.com A challenge password []:123456 An optional company name []:e然后修改httpd-ssl.conf,e是我在本地建的一个虚拟主机 <VirtualHost *:443> DocumentRoot "D:/e" ServerName e:443 ServerAlias e ServerAdmin xxx@xxx.com DirectoryIndex index.html index.htm index.php default.php app.php u.php ErrorLog logs/example_error.log CustomLog logs/example_access.log \ "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b" SSLEngine on SSLCertificateFile "D:/upupw/xxx/server.crt" SSLCertificateKeyFile "D:/upupw/xxx/server.key" <Directory "D:/e"> SSLOptions +StdEnvVars AllowOverride All Require all granted </Directory> <FilesMatch "\.(shtml|phtml|php)$"> SSLOptions +StdEnvVars </FilesMatch> BrowserMatch "MSIE [2-5]" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 </VirtualHost> 然后s2启动apache,提示下面错误,用4检测端口状态也没被占用 图片:2017-05-06_165017.jpg 然后我按照论坛搜索到的一些解决办法修改配置 #注释掉这两个重启也不行 #LoadFile "D:/upupw/PHP5/ssleay32.dll" #LoadFile "D:/upupw/PHP5/libeay32.dll"第一次配置HTTPS,不知道是哪里没弄对,请大神指点一下,主要用来本地开发调试的,不用绑定域名。 [z3z3z3于2017-05-06 23:38编辑了帖子]
|
|
沙发#
发布于:2017-05-06 23:40
已经设置好了~
|
|
板凳#
发布于:2017-05-18 19:40
|
|
地板#
发布于:2023-06-18 09:37
请问如何解决的
|
|
|