title: how to rename your localhost/myfolder in htdocs to some domain name
body: <p>So we all know that to access your site inside htdocs you have to type "localhost/yoursite folder" right? but i have managed to change that by some help of my friend. now my friend is gone so i cant ask him to change it back. Instead of "localhost/yoursite" i can access it through "mysite.test" it has something to do with host.txt in system32. Now the problem is im installing a new drupal site in htdocs again and i cant access it since my localhost is always pointing to my first drupal site. how do i configure this?</p>
  
  <p>HERE'S MY HOST.TXT </p>
  
  <pre><code># localhost name resolution is handled within DNS itself.
  #   127.0.0.1       localhost
  #   ::1             localhost
      127.0.0.1   activate.adobe.com
      127.0.0.1   drupal6.test
      127.0.0.1   belmark.test
  </code></pre>
  
  <p>drupal 6 is my previous site. and belmark.test is the site i want the localhost to direct to which is not working. even if i omit the drupal6.test line localhost still directs to drupal6.test</p>
  
  <p>and here's my httpd-vhost.conf </p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      ServerAdmin cadaybelmark@gmail.com
      DocumentRoot "C:/xampp/htdocs/drupal6"
      ServerName drupal6.test
      ServerAlias drupal6.test
      ErrorLog "logs/drupal6.test-error.log"
      CustomLog "logs/drupal6.test-access.log" combined
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost *:80&gt;
      ServerAdmin cadaybelmark@gmail.com
      DocumentRoot "C:/xampp/htdocs/drupal7"
      ServerName belmark.test
      ServerAlias belmark.test
      ErrorLog "logs/drupal.test-error.log"
      CustomLog "logs/drupal.test-access.log" combined
  &lt;/VirtualHost&gt;
  </code></pre>