Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6821807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:35:20+00:00 2026-05-26T21:35:20+00:00

I’ve built a vagrant/virtualbox web server as a development sandbox, and configured apache in

  • 0

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

curl -v -k https://mysite.mydomain.com/testSearch/results?postcode=WN8+0BA

and it seems to work quite happily, so I’m satisfied that apache is correctly configured and working in the VM.

However, when I try to access the VM from my host’s browsers over https, I’m unable to do so.

I’ve added

config.vm.forward_port "https", 443, 8443

to my vagrantfile, but trying to access the url

https://mysite.mydomain.com:8443/testSearch/results?postcode=WN8+0BA

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

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 gives me

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)

but even the Firebug Net tab doesn’t tell me anything more than that.

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.

  • VM Guest OS: centos56x64
  • Host: Windows 7 64-bit
  • 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]
  • Vagrant: 0.7.8
  • VirtualBox: 4.0.12

Any assistance would be gratefully accepted.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T21:35:21+00:00Added an answer on May 26, 2026 at 9:35 pm

    1) Configure the file Vagrantfile

    Vagrant::Config.run do |config|
        config.vm.box = "lucid32"
        config.vm.network "33.33.33.10"
        config.vm.forward_port "http", 80, 8080
    end
    

    2) Access your VM “lucid32”

    vagrant ssh
    

    3) Inside your VM, configure the Apache “Virtual Host”:

    <VirtualHost 33.33.33.10:80>
        ServerName        your-domain.dev
        DocumentRoot    /vagrant
        DirectoryIndex    index.php index.html index.htm
    
        <Directory /vagrant>
            AllowOverride All
            Allow from All
        </Directory>
    </VirtualHost>
    
    <VirtualHost 33.33.33.10:443>
        ServerName        your-domain.dev
        DocumentRoot    /vagrant
        DirectoryIndex    index.php index.html index.htm
    
        <Directory /vagrant>
            AllowOverride All
            Allow from All
        </Directory>
    
        SSLEngine on
        SSLCertificateFile /path/to/certicate/apache.pem
    </VirtualHost>
    

    4) Exit VM and configure the file “hosts” in your host machine:

    33.33.33.10    your-domain.dev
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
Seemingly simple, but I cannot find anything relevant on the web. What is the
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.