Note that there are some explanatory texts on larger screens.

plurals
  1. POAccessing apache on a vagrant sandbox using ssl (port forwarding)
    text
    copied!<p>I've built a vagrant/virtualbox web server as a development sandbox, and configured apache in the VM for ssl (on the default port 443, with a self-signed certificate). I've tested pages on the VM itself using curl </p> <pre><code>curl -v -k https://mysite.mydomain.com/testSearch/results?postcode=WN8+0BA </code></pre> <p>and it seems to work quite happily, so I'm satisfied that apache is correctly configured and working in the VM.</p> <p>However, when I try to access the VM from my host's browsers over https, I'm unable to do so.</p> <p>I've added </p> <pre><code>config.vm.forward_port "https", 443, 8443 </code></pre> <p>to my vagrantfile, but trying to access the url</p> <pre><code>https://mysite.mydomain.com:8443/testSearch/results?postcode=WN8+0BA </code></pre> <p>simply can't display the page I've tried with several different browsers: IE gives a meaningless "Internet Explorer cannot display the webpage"; Chrome gives</p> <pre><code>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. </code></pre> <p>Firefox gives me</p> <pre><code>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) </code></pre> <p>but even the Firebug Net tab doesn't tell me anything more than that.</p> <p>I'm not getting anything in the access or error logs on the VM apache, so I suspect that vagrant isn't forwarding the ssl at all.</p> <ul> <li>VM Guest OS: centos56x64 </li> <li>Host: Windows 7 64-bit </li> <li>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]</li> <li>Vagrant: 0.7.8 </li> <li>VirtualBox: 4.0.12</li> </ul> <p>Any assistance would be gratefully accepted.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload