vagrant/virtualbox Web サーバーを開発サンドボックスとして構築し、VM で ssl 用に apache を構成しました (自己署名証明書を使用して、デフォルトのポート 443 で)。curl を使用して VM 自体のページをテストしました
curl -v -k https://mysite.mydomain.com/testSearch/results?postcode=WN8+0BA
非常にうまく動作しているように見えるので、Apache が正しく構成され、VM で動作していることに満足しています。
ただし、ホストのブラウザーから https 経由で VM にアクセスしようとすると、アクセスできません。
私は追加しました
config.vm.forward_port "https", 443, 8443
私のvagrantfileに、しかしURLにアクセスしようとしています
https://mysite.mydomain.com:8443/testSearch/results?postcode=WN8+0BA
いくつかの異なるブラウザーで試したページを単に表示できません。クロムは与える
SSL connection error
Unable to make a secure connection to the server. This may be a problem with the server or it may be requiring a client authentication certificate that you don't have.
Error 107 (net::ERR_SSL_PROTOCOL_ERROR): SSL protocol error.
Firefoxは私に与えます
An error occurred during a connection to mysite.mydomain.com:8443.
SSL received a record that exceeded the maximum permissible length.
(Error code: ssl_error_rx_record_too_long)
しかし、Firebug Net タブでさえ、それ以上のことは何も教えてくれません。
VM apache のアクセス ログやエラー ログに何も記録されていないため、vagrant が ssl をまったく転送していないのではないかと考えています。
- VM ゲスト OS: centos56x64
- ホスト: Windows 7 64 ビット
- JRuby: 1.6.3 (ruby-1.8.7-p330) (2011-07-07 965162f) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_24) [Windows 7-amd64-java]
- 浮浪者: 0.7.8
- バーチャルボックス: 4.0.12
どんな援助もありがたく受け入れます。