title: Eclipse PDT adds project name to virtual host path
body: <p>Can someone help me out. I run into a problem when I run a file (e.g. index.php). Every time when I want to run a file on the test server (XAMPP) Eclipse (PDT) adds the project name (e.g. testproject) after the server name (e.g. <code>http://testproject.dev</code>). Because I have setup a virtual host setup to automatically use a specific path (e.g. <code>http://testproject.dev</code> is linked to <code>http://localhost/testproject</code>) on the server this creates a problem. Eclipse adds the project name and then the URL becomes <code>http://testproject.dev/testproject/index.php</code>.  </p>
  
  <p>This are my configurations:</p>
  
  <p>XAMPP
  httpd.conf (c:\xampp\conf\httpd.conf)</p>
  
  <pre><code># Virtual hosts
  Include "conf/extra/httpd-vhosts.conf"
  </code></pre>
  
  <p>httpd-vhosts.conf (c:\xampp\conf\extra\httpd-vhosts.conf)</p>
  
  <pre><code>NameVirtualHost 127.0.0.1
  
  &lt;VirtualHost 127.0.0.1&gt;
  DocumentRoot "C:/xampp/htdocs/testproject"
  ServerName testproject.dev
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>Windows 7
  Windows vhost file (C:\Windows\System32\drivers\etc\hosts)</p>
  
  <pre><code>127.0.0.1 testproject.dev
  </code></pre>
  
  <p>Eclipse
  -> Preferences -> PHP Server</p>
  
  <ul>
  <li><p>Tab "Server":  Name: "Development_Server_Testproject" URL: <code>http://testproject.dev</code></p></li>
  <li><p>Tab "Path Mapping": Path on server <code>http://testproject.dev</code> Path in workspace</p></li>
  </ul>
  
  <p>/testproject</p>