title: How to share a vagrant machine with https
body: <p>I have a working vagrant VM I want to <a href="https://www.vagrantup.com/docs/share/" rel="nofollow noreferrer">Share</a>. In my Vagrantfile I have:</p>
  
  <pre><code>config.vm.network "forwarded_port", guest: 80, host: 8080
  config.vm.network "private_network", ip: "192.168.1.15"
  config.vm.network "forwarded_port", guest: 443, host: 443
  </code></pre>
  
  <p>in the virtual host I have</p>
  
  <pre><code>&lt;VirtualHost *:443&gt;
  ...
  ServerAlias *.vagrantshare.com
  ....
  &lt;/Virtualhost&gt;
  </code></pre>
  
  <p>not sure about the first line but it was there already</p>
  
  <p>I share the machine with </p>
  
  <pre><code>vagrant share --https 443
  </code></pre>
  
  <p>this is the output:</p>
  
  <pre><code>==&gt; default: Detecting network information for machine...
  default: Local machine address: 127.0.0.1
  default:  
  default: Note: With the local address (127.0.0.1), Vagrant Share can only
  default: share any ports you have forwarded. Assign an IP or address to your
  default: machine to expose all TCP ports. Consult the documentation
  default: for your provider ('virtualbox') for more information.
  default:  
  default: Local HTTP port: 8080
  default: Local HTTPS port: 443
  default: Port: 2222
  default: Port: 443
  default: Port: 8080
  ==&gt; default: Checking authentication and authorization...
  ==&gt; default: Creating Vagrant Share session...
  default: Share will be at: towering-badger-9312
  ==&gt; default: Your Vagrant Share is running! Name: towering-badger-9312
  ==&gt; default: URL: http://towering-badger-9312.vagrantshare.com
  ==&gt; default:  
  ==&gt; default: You're sharing your Vagrant machine in "restricted" mode. This
  ==&gt; default: means that only the ports listed above will be accessible by
  ==&gt; default: other users (either via the web URL or using `vagrant connect`).
  </code></pre>
  
  <p>I can see it in vagrant cloud but I got an error while trying to access it via https:</p>
  
  <pre><code>towering-badger-9312.vagrantshare.com is currently unable to handle this request.
  HTTP ERROR 500
  </code></pre>
  
  <p>not any other useful message in the console, any idea how to debug this?</p>
  
  <p>thanks</p>