我有一个需要SSL的本地开发环境。我从git hub克隆了环境,并且它正在使用SSL,(我是否需要创建一个与所使用的完全相同的自签名证书?)在我将其用于常规的不安全环境之后,我遵循了这个{{ 3}}使它成为SSL。但是,自从我开始从不安全的开发人员转移到ssl dev环境以来,WAMP无法启动。我甚至不再收到错误日志了。我得到的最后一个是昨天。另外,尝试httpd -k start会出现os10013错误“试图以禁止的方式访问套接字”
[Tue Aug 16 13:21:56.086725 2016] [ssl:emerg] [pid 2436:tid 348]
AH02311:Fatal error initialising mod_ssl, exiting.
See C:/wamp/bin/apache/apache2.4.9/logs/sslerror_log for more information
AH00016: Configuration Failed
检查了SSL日志,它是空白的。
我在尝试将其联机时也遇到错误:
Could not execute menu item (internal error)[Exception] Could not
perform service action:The service has not been started
我认为这是一个端口冲突。我运行了netstat -an,发现什么都没有侦听端口80,8080或448(我正在使用的ssl端口),仍然没有。
所以我已经没有想法,需要一些帮助。以下是我文件的配置。
的httpd-ssl.conf中
Listen 443
Listen 445
Listen 448
<VirtualHost _default_:448>
# General setup for the virtual host
DocumentRoot "C:/wamp/www/foo/bar"
ServerName foo.dev:448
ServerAdmin admin@example.com
ErrorLog "C:/wamp/logs/sslerror.log"
TransferLog "C:/wamp/logs/access.log"
SSLCertificateFile "c:/wamp/bin/apache/apache2.4.9/conf/ssl.crt/server.crt
SSLCertificateKey "c:/wamp/bin/apache/apache2.4.9/conf/ssl.key/server.key
<Directory "c:/wamp/www/foo/bar">
SSLOptions +StdEnvVars
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require local
</Directory>
的httpd.conf
Listen 8080
Listen 445
Listen 448
LoadModule ssl_module modules/mod_ssl.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
# 'Main' server configuration
ServerName localhost:80
HostnameLookups Off
DocumentRoot "c:/wamp/www"
<Directory />
AllowOverride none
Require all denied
</Directory>
<Directory "c:/wamp/bin/apache/apache2.4.9/cgi-bin">
AllowOverride None
Options None
Require all granted
</Directory>
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
# Secure (SSL/TLS) connections
Include conf/extra/httpd-ssl.conf
#IncludeOptional "c:/wamp/vhosts/*"
Include "c:/wamp/alias/*"
的httpd-vhosts.conf
DocumentRoot "c:/wamp/www/foo/bar"
ServerName foo.dev
ServerAlias www.foo.dev
<directory "c:/wamp/www/foo/bar">
AllowOverride All
Require local
</directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "c:/wamp/www"
ServerName localhost
ServerAlias localhost
ErrorLog "logs/local-error.log"
CustomLog "logs/localhost-access" common
<Directory "c:/wamp/www/">
AllowOverride All
Require local
</Directory>
</VirtualHost>
主机
127.0.0.1 localhost
127.0.0.1 foo.dev www.foo.dev
::1 drm.dev www.foo.dev
安装了PHP.ini中的扩展名。