-1
2つのWebサイト(AとB)を持つマルチサイトApacheサーバーを引き継ぎます。 httpを介してウェブサイトAのURLに行くと正常に動作します。同じURLに行くが、httpsを使用すると、ウェブサイトBが表示されます。これはなぜですか、どうすればhttps://urlA.comはウェブサイトAに移動しますか?HTTPとHTTPSで異なるサイト
2つのWebサイト(AとB)を持つマルチサイトApacheサーバーを引き継ぎます。 httpを介してウェブサイトAのURLに行くと正常に動作します。同じURLに行くが、httpsを使用すると、ウェブサイトBが表示されます。これはなぜですか、どうすればhttps://urlA.comはウェブサイトAに移動しますか?HTTPとHTTPSで異なるサイト
私はこの問題を解決しました。 SSLCertFilesで、VirtualHostのはポート443でリスニング追加
<VirtualHost 99.9.9.999:80>
DocumentRoot /var/www/example
ServerName example.com
<Directory "/var/www/example">
Options Indexes
AllowOverride None
DirectoryIndex index.php index.html
Order allow,deny
Allow from all
</Directory>
:
サーバーは、だから、このようなものを見て仮想ホストを設定し、ないのVirtualHostは、ポート443のためにありませんでしたし、指定した問題を修正しました。
<VirtualHost 99.9.9.999:443>
DocumentRoot /var/www/example
ServerName example.com
<Directory "/var/www/example">
Options Indexes
AllowOverride None
DirectoryIndex index.php index.html
Order allow,deny
Allow from all
</Directory>
SSLCertificateFile /etc/httpd/conf/example.crt
SSLCertificateKeyFile /etc/httpd/conf/_.example.key
SSLCertificateChainFile /etc/httpd/conf/gd_example.crt
SSLEngine on
</VirtualHost>
サーバーの設定を送信します。これは、サーバーブロックの定義方法に関連している可能性があります。 –