我正在使用 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 甚至不启动调试 session 。它只是打开 Run Configuration
窗口,建议我根据警告更改 Index File
字段。
最佳答案
右键单击您的项目 > Properties > Sources > Web Root > 单击 Browse... 并选择您的根 - 在您的情况下它将是“web”
关于php - Netbeans - 虚拟主机的配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25782811/