title: How to create Apache Virtual host?
body: <p>Im using Windows 7, and there I installed apache server in <code>c:\wamp\apache\</code>, PHP is located in <code>c:\wamp\php\</code>, and loaded as module.</p>
  
  <p>So lets say I'm building test project and I only have index.php in that project.
  Folder of that project will be located in <code>c:\wamp\apache\htdocs\test\index.php</code> and I can access that through my browser: <code>localhost\test</code></p>
  
  <p>This all works nice, but I have problem when I include images, css and js files.
  lets say I want to include css style, i must use this:</p>
  
  <pre><code>&lt;link rel="stylesheet" href="/test/images/image.jpg" /&gt;
  </code></pre>
  
  <p>and I would like to use this for a href:</p>
  
  <pre><code>&lt;link rel="stylesheet" href="/images/image.jpg" /&gt;
  </code></pre>
  
  <p>So that <code>/</code> is root, and from there I can search for files inside my project folder.</p>
  
  <p>What should I do? Should I create virtual server for every project, or there is a way that every folder in my htdocs folder acts as it would on live server, where <code>/</code> would translate to document root?</p>
  
  <p>How should I setup Apache server so that every folder in my htdocs folder acts as server for itself?
  When I use XAMPP it works like that.</p>
  
  <p>Thanks!</p>