title: Is "vagrant up" possible from different local directories with custom URLs?
body: <p>I have two directories under /var/www/html, named vlp1 and vlp2 with Vagrant setup. If I run <code>vagrant up</code> separately in these folders the default local URL is <code>vagrant.local</code> for both. But <code>vagrant.local/</code> always loads site from vlp1 folder.</p>
  
  <p>As it should be, <code>vagrant global-status</code> shows that I have two virtual machines running under these directories. I require to run both sites  side by side and to do this the only option I see is to have separate URLs. I believe there is a way to assign different URLs to different sites but don't have any idea how!</p>
  
  <p>What I need to do to accomplish the above so that my sites run like <strong>local.vlp1.com</strong> and <strong>local.vlp2.com</strong> or may be like <strong>vagrant.vlp1</strong> and <strong>vagrant.vlp2</strong>?</p>
  
  <p>According to project instructions I have to keep two sites completely separated in two folders and have to use separate <code>Vagrantfiles</code>.</p>
  
  <ul>
  <li>OS: Ubuntu 14.04 64 bit</li>
  <li>Installed VitualBox version: 5.1</li>
  <li>Installed Vagrant version: 1:1.9.4</li>
  </ul>
  
  <p>Thank you!</p>
  
  <p><strong>UPDATE</strong>
  Went through the following steps as advised by Henri:</p>
  
  <p><strong>Step 1:</strong></p>
  
  <pre><code>$ vagrant global-status
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>id       name    provider   state   directory                           
  ------------------------------------------------------------------------
  eb9b569  default virtualbox running /var/www/html/vlp1                  
  190608c  default virtualbox running /var/www/html/vlp2
  </code></pre>
  
  <p><strong>Step 2:</strong> Did a graceful shutdown on vlp2</p>
  
  <pre><code>$ vagrant halt 190608c
  </code></pre>
  
  <p><strong>Step 3:</strong> Output of vagrant global-status now is</p>
  
  <pre><code>id       name    provider   state    directory                           
  -------------------------------------------------------------------------
  eb9b569  default virtualbox running  /var/www/html/vlp1                  
  190608c  default virtualbox poweroff /var/www/html/vlp2 
  </code></pre>
  
  <p><strong>Step 4:</strong></p>
  
  <pre><code>$ sudo gedit /var/www/html/vlp2/Vagrantfile
  
  if CONF['ip'] == "dhcp"
      config.vm.network :private_network, type: "dhcp", hostsupdater: "skip"
  else
      config.vm.network :private_network, ip: "192.168.2.5"
  end
  </code></pre>
  
  <p><strong>Step 5:</strong> Re up'd vlp2 machine</p>
  
  <pre><code>$ vagrant up 190608c
  </code></pre>
  
  <p><strong>Step 6:</strong>
  <code>$ vagrant global-status</code> now shows both machine are back to running state again.</p>
  
  <pre><code>id       name    provider   state   directory                           
  ------------------------------------------------------------------------
  eb9b569  default virtualbox running /var/www/html/vlp1                  
  190608c  default virtualbox running /var/www/html/vlp2
  </code></pre>
  
  <p><strong>Step 7:</strong>
  In /etc/hosts added following entry</p>
  
  <pre><code>192.168.2.5   vagrant.vlp2
  </code></pre>
  
  <p>Finally I tried vagrant.vlp2/ in browser but ended up with the following message:</p>
  
  <blockquote>
    <p>This site can’t be reached<br>
    <a href="http://vagrant.vlp2/" rel="nofollow noreferrer">http://vagrant.vlp2/</a> is unreachable.</p>
  </blockquote>