Netbeans - 虚拟主机的配置

时间:2014-09-11 08:35:37

标签: php debugging netbeans

我正在使用Netbeans 8.0。我必须在我的Apache上设置虚拟主机才能获得

http://mysite.dev/index.php

而不是

http://localhost/mysite/frontend/web/index.php

我试图在Netbeans中设置运行配置(用于xdebug目的),这似乎是不可能的。当我将Project URL设置为:

http://mysite.dev

Index File只需向index.php发出警告

Index File must be a valid relative URL

警告会阻止调试。我不知道如何解决它。

编辑(对于@akshayb):

<VirtualHost *:80>  
DocumentRoot "C:\wamp\www\mysite\frontend\web"
ServerName mysite.dev
</VirtualHost>

我认为不重要。 Netbeans甚至没有启动调试会话。它只会打开Run Configuration窗口,建议我根据警告更改Index File字段。

1 个答案:

答案 0 :(得分:3)

右键点击您的项目&gt;属性&gt;来源&gt; Web Root&gt;单击“浏览...”并选择您的根 - 在您的情况下,它将是“web”