title: Create Virtual Hosts in Vagrant Server
body: <p>I am running Apache server with vagrant and I want to access multiple websites from host machine. Current setup looks like this:</p>
  
  <p><strong>Vagrantfile:</strong></p>
  
  <pre><code>Vagrant.configure("2") do |config|
      config.vm.box = "ubuntu/trusty64"
      config.ssh.forward_agent = true
      config.vm.network "forwarded_port", guest: 80, host: 80, host_ip: "127.0.0.1", id: 'apache_http'
      config.vm.network "forwarded_port", guest: 443, host: 443, host_ip: "127.0.0.1", id: 'apache_https'
      config.vm.network "forwarded_port", guest: 22, host: 22, host_ip: "127.0.0.1", id: 'ssh'
      config.vm.network "private_network", ip: "192.168.33.10"
      config.vm.synced_folder ".", "/var/www/"
  end
  </code></pre>
  
  <p><strong>/etc/hosts</strong></p>
  
  <pre><code>127.0.0.1 localhost
  192.168.33.10 website.com
  192.168.33.10 a.website.com
  192.168.33.10 b.website.com
  </code></pre>
  
  <p><strong>/etc/apache2/sites-available/website.conf</strong></p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      ServerAdmin example@gmail.com
      ServerName website.com
      ServerAlias www.website.com
      DocumentRoot /var/www/website/public_html
      ErrorLog /var/www/website/error.log
      CustomLog ${APACHE_LOG_DIR}/access.log combined
  &lt;/VirtualHost&gt;
  &lt;VirtualHost _default_:443&gt;
      ServerName website.com
      ServerAlias www.website.com
      DocumentRoot /var/www/website/public_html
      ErrorLog /var/www/website/error.log
      SSLEngine on
      SSLCertificateKeyFile /etc/apache2/ssl/website.key
      SSLCertificateFile /etc/apache2/ssl/website.cert
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>I can access the website from inside vagrant box by: <code>curl https://website.com -k</code>. How can I expose it to the host machine?</p>