簡體   English   中英

XAMPP Apache具有多個SSL主機問題

[英]XAMPP Apache with multiple SSL hosts issue

我試圖在同一本地服務器上為兩個單獨的站點運行兩個SSL主機。

一個很好用

http-ssl.conf

<VirtualHost *:443>
 ServerName drupal.local
 DocumentRoot C:\xampp\htdocs\drupal\code\drupal
 SSLEngine on
 SSLCertificateFile C:\xampp\apache\conf\ssl.crt\server.crt
 SSLCertificateKeyFile C:\xampp\apache\conf\ssl.key\server.key
</VirtualHost>

但是,當我添加另一台主機時,apache錯誤日志中出現以下錯誤

[Mon Jul 06 15:26:19.768431 2015] [ssl:warn] [pid 10672:tid 260] AH01909: anchor.local:443:0 server certificate does NOT include an ID which matches the server name
[Mon Jul 06 15:26:19.768431 2015] [ssl:warn] [pid 10672:tid 260] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Jul 06 15:26:19.818431 2015] [core:warn] [pid 10672:tid 260] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Mon Jul 06 15:26:19.978431 2015] [ssl:warn] [pid 10672:tid 260] AH01909: anchor.local:443:0 server certificate does NOT include an ID which matches the server name
[Mon Jul 06 15:26:19.978431 2015] [ssl:warn] [pid 10672:tid 260] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Jul 06 15:26:20.008431 2015] [mpm_winnt:notice] [pid 10672:tid 260] AH00455: Apache/2.4.12 (Win32) OpenSSL/1.0.1l PHP/5.6.8 configured -- resuming normal operations
[Mon Jul 06 15:26:20.008431 2015] [mpm_winnt:notice] [pid 10672:tid 260] AH00456: Apache Lounge VC11 Server built: Jan 28 2015 16:48:40
[Mon Jul 06 15:26:20.008431 2015] [core:notice] [pid 10672:tid 260] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Mon Jul 06 15:26:20.018431 2015] [mpm_winnt:notice] [pid 10672:tid 260] AH00418: Parent: Created child process 7984
[Mon Jul 06 15:26:20.728431 2015] [ssl:warn] [pid 7984:tid 272] AH01909: anchor.local:443:0 server certificate does NOT include an ID which matches the server name
[Mon Jul 06 15:26:20.728431 2015] [ssl:warn] [pid 7984:tid 272] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Jul 06 15:26:20.938431 2015] [ssl:warn] [pid 7984:tid 272] AH01909: anchor.local:443:0 server certificate does NOT include an ID which matches the server name
[Mon Jul 06 15:26:20.938431 2015] [ssl:warn] [pid 7984:tid 272] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Mon Jul 06 15:26:20.968431 2015] [mpm_winnt:notice] [pid 7984:tid 272] AH00354: Child: Starting 150 worker threads.

觸發錯誤的配置看起來像

<VirtualHost *:443>
 ServerName anchor.local
 DocumentRoot C:\xampp\htdocs\anchor-2.6.4\code\drupal
 SSLEngine on
 SSLCertificateFile C:\xampp\apache\conf\ssl.crt\server.crt
 SSLCertificateKeyFile C:\xampp\apache\conf\ssl.key\server.key
</VirtualHost>

<VirtualHost *:443>
 ServerName test.local
 DocumentRoot C:\xampp\htdocs\code\
 SSLEngine on
 SSLCertificateFile C:\xampp\apache\conf\ssl.crt\server.crt
 SSLCertificateKeyFile C:\xampp\apache\conf\ssl.key\server.key
 </VirtualHost>

我試過在不同的端口上運行SSL,但到目前為止還沒有。

任何幫助,不勝感激。

您需要確保服務器ID和SSL ID相同。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM