次の仮想ホスト構成があります。
listen 80
listen 443
servername "example.com"
serveradmin "email@example.com"
namevirtualhost *:80
namevirtualhost *:443
directoryindex index.html index.php
options -indexes -multiviews +followsymlinks
<directory /Volumes/dev1/http>
allowoverride all
</directory>
<virtualhost *:80 *:443>
servername example.com
serveralias www.example.com
documentroot "/Volumes/dev1/http/example"
rewriteengine on
SSLCertificateFile "/Volumes/dev1/ssl/_ssl-cert.crt"
SSLCertificateKeyFile "/Volumes/dev1/ssl/_ssl-privatekey.crt"
SSLCertificateChainFile "/Volumes/dev1/ssl/_ssl-csr.crt"
</virtualhost>
もちろんexample.com
、ほんの一例です。
にアクセスすれば問題ありませんが、バージョンにhttp://example.com
アクセスしようとすると、HTTPS
Safari can’t open the page “https://example.com/” because Safari
can’t establish a secure connection to the server “example.com”.
_ssl*
ファイルはすべて配置されており、ターミナルから実行するhttpd -t
と が返されますSyntax OK
。
私は何を間違っていますか?ありがとう!