请问 在本地安装了 apache ,mysql 和 php。在
Apache24\Apache24\conf\httpd.conf 中 已经设置了添加 httpd-ssl.conf 即:
# Secure (SSL/TLS) connections
# Note: The following must must be present to support
# starting without SSL on platforms with no /dev/random equivalent
# but a statically compiled-in mod_ssl.
<IfModule ssl_module>
Include conf/extra/httpd-ssl.conf
Include conf/extra/httpd-ahssl.conf
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
那么在 Apache24\Apache24\conf\extra\httpd-ssl.conf 中默认的设置如下
##
## SSL Virtual Host Context
##
<VirtualHost _default_:443>
# General setup for the virtual hostDocumentRoot "${SRVROOT}/htdocs"
ServerName www.example.com:443
ServerAdmin [email protected]
ErrorLog "${SRVROOT}/logs/error.log"
TransferLog "${SRVROOT}/logs/access.log"# SSL Engine Switch:
# Enable/Disable SSL for this virtual host.
SSLEngine on以上是安装的时候默认的设置,请问 在httpd-ssl.conf中以上关于 VirtualHost的应该怎么设置呢? 麻烦知道的朋友回复,谢谢啦PS (因为在error.log中出现了以下错误log,导致打不开网页,所以就觉得要修改以上的配置:
[Fri Jul 01 18:57:03.326494 2016] [ssl:warn] [pid 5612:tid 508] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Fri Jul 01 18:57:03.327496 2016] [ssl:warn] [pid 5612:tid 508] AH01909: www.example.com:442:0 server certificate does NOT include an ID which matches the server name
[Fri Jul 01 18:57:03.621704 2016] [ssl:warn] [pid 5612:tid 508] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Fri Jul 01 18:57:03.622704 2016] [ssl:warn] [pid 5612:tid 508] AH01909: www.example.com:442:0 server certificate does NOT include an ID which matches the server name
)
Apache24\Apache24\conf\httpd.conf 中 已经设置了添加 httpd-ssl.conf 即:
# Secure (SSL/TLS) connections
# Note: The following must must be present to support
# starting without SSL on platforms with no /dev/random equivalent
# but a statically compiled-in mod_ssl.
<IfModule ssl_module>
Include conf/extra/httpd-ssl.conf
Include conf/extra/httpd-ahssl.conf
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
那么在 Apache24\Apache24\conf\extra\httpd-ssl.conf 中默认的设置如下
##
## SSL Virtual Host Context
##
<VirtualHost _default_:443>
# General setup for the virtual hostDocumentRoot "${SRVROOT}/htdocs"
ServerName www.example.com:443
ServerAdmin [email protected]
ErrorLog "${SRVROOT}/logs/error.log"
TransferLog "${SRVROOT}/logs/access.log"# SSL Engine Switch:
# Enable/Disable SSL for this virtual host.
SSLEngine on以上是安装的时候默认的设置,请问 在httpd-ssl.conf中以上关于 VirtualHost的应该怎么设置呢? 麻烦知道的朋友回复,谢谢啦PS (因为在error.log中出现了以下错误log,导致打不开网页,所以就觉得要修改以上的配置:
[Fri Jul 01 18:57:03.326494 2016] [ssl:warn] [pid 5612:tid 508] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Fri Jul 01 18:57:03.327496 2016] [ssl:warn] [pid 5612:tid 508] AH01909: www.example.com:442:0 server certificate does NOT include an ID which matches the server name
[Fri Jul 01 18:57:03.621704 2016] [ssl:warn] [pid 5612:tid 508] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
[Fri Jul 01 18:57:03.622704 2016] [ssl:warn] [pid 5612:tid 508] AH01909: www.example.com:442:0 server certificate does NOT include an ID which matches the server name
)
@ fdipzone 谢谢您的回复我是在windows下 安装apache的,而您给的是关于linux的下的
Apache 搭建HTTPS Virtual Host
我在网上看到关于window下安装的:http://www.server110.com/apache/201309/1542.html 请问是否要按照这个网页上面的设置的,因为里边有提到要配置 CA之类的。另外我还想请问下, 在windows8下,当我安装完apache的时候,在目录Apache24\Apache24\conf\ssl 里边 就有默认有如下几个文件的:
server.key server.csr server.crt 如图2所示 图2
那这样的话,为什么还需要按照http://www.server110.com/apache/201309/1542.html 里边的操作再分别生成这三个文件呢?麻烦再帮忙回复下,谢谢啦