在win 7和之前安装的Apache(未启用SSL)已成功运行。在httpd.conf上配置SSL后,尝试通过监视器重新启动(停止然后启动),其提示如下错误。请帮我解决这个问题。
The Request Operation has failed
尝试通过低于错误的服务启动apache
"Windows couldn't start Apache 2.2 on local PC. For more information check system events log. If it's not a windows service contact service provider and reference the code:1"
Apache Verion
c:\Program Files (x86)\Apache Software Foundation\Apache2.2\bin>httpd.exe -v
Server version: Apache/2.2.22 (Win32)
Server built: Jan 28 2012 11:16:39
执行httpd.exe -e debug,
c:\Program Files (x86)\Apache Software Foundation\Apache2.2\bin>httpd.exe -e debug
[Fri Jan 15 15:06:51 2016] [debug] mod_so.c(246): loaded module actions_module
[Fri Jan 15 15:06:51 2016] [debug] mod_so.c(246): loaded module alias_module
[Fri Jan 15 15:06:51 2016] [debug] mod_so.c(246): loaded module asis_module
[Fri Jan 15 15:06:51 2016] [debug] mod_so.c(246): loaded module auth_basic_module
[Fri Jan 15 15:06:51 2016] [debug] mod_so.c(246): loaded module authn_default_module
[Fri Jan 15 15:06:51 2016] [debug] mod_so.c(246): loaded module authn_file_module
[Fri Jan 15 15:06:51 2016] [debug] mod_so.c(246): loaded module authz_default_module
[Fri Jan 15 15:06:51 2016] [debug] mod_so.c(246): loaded module authz_groupfile_module
[Fri Jan 15 15:06:51 2016] [debug] mod_so.c(246): loaded module authz_host_module
[Fri Jan 15 15:06:51 2016] [debug] mod_so.c(246): loaded module authz_user_module
[Fri Jan 15 15:06:51 2016] [debug] mod_so.c(246): loaded module autoindex_module
[Fri Jan 15 15:06:51 2016] [debug] mod_so.c(246): loaded module cgi_module
[Fri Jan 15 15:06:51 2016] [debug] mod_so.c(246): loaded module dir_module
[Fri Jan 15 15:06:51 2016] [debug] mod_so.c(246): loaded module env_module
[Fri Jan 15 15:06:51 2016] [debug] mod_so.c(246): loaded module imagemap_module
[Fri Jan 15 15:06:51 2016] [debug] mod_so.c(246): loaded module include_module
[Fri Jan 15 15:06:51 2016] [debug] mod_so.c(246): loaded module isapi_module
[Fri Jan 15 15:06:51 2016] [debug] mod_so.c(246): loaded module log_config_module
[Fri Jan 15 15:06:51 2016] [debug] mod_so.c(246): loaded module mime_module
[Fri Jan 15 15:06:51 2016] [debug] mod_so.c(246): loaded module negotiation_module
[Fri Jan 15 15:06:51 2016] [debug] mod_so.c(246): loaded module setenvif_module
[Fri Jan 15 15:06:51 2016] [debug] mod_so.c(246): loaded module userdir_module
在httpd.con文件中,更新了以下条目
Listen <ipadress>:81
ServerAdmin admin@www.d235y.com => www.d235y.com->domain name created after executing "openssl" command=> openssl req -new -out server.csr
# Secure (SSL/TLS) connections
Include conf/extra/httpd-ssl.conf
在httpd-ssl.conf文件中,
Listen 10.94.2.44:8443
<VirtualHost _default_:443>
# General setup for the virtual host
DocumentRoot "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs"
ServerName www.d235y.com:443
ServerAlias d235y.com:443
ServerAdmin admin@www.d235y.com
ErrorLog "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/logs/error.log"
TransferLog "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/logs/access.log"
证书文件条目如下
SSLCertificateFile "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/conf/server.cert"
SSLCertificateKeyFile "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/conf/server.key"