[英]Netbeans - configuration for virtual host
I'm using Netbeans 8.0.我正在使用 Netbeans 8.0。 I had to setup virtual host on my Apache to get
我必须在我的 Apache 上设置虚拟主机才能获得
http://mysite.dev/index.php
instead of代替
http://localhost/mysite/frontend/web/index.php
I was trying to setup Run Configuration in Netbeans (for xdebug purpose) and it seems to be impossible.我试图在 Netbeans 中设置运行配置(用于 xdebug 目的),这似乎是不可能的。 When I set
Project URL
to:当我将
Project URL
设置为:
http://mysite.dev
and Index File
simply to index.php
there is a warning而
Index File
只是对index.php
有一个警告
Index File must be a valid relative URL
The warnings prevent debugging.警告会阻止调试。 I have no idea how to solve it.
我不知道如何解决它。
EDIT (for @akshayb):编辑(对于@akshayb):
<VirtualHost *:80>
DocumentRoot "C:\wamp\www\mysite\frontend\web"
ServerName mysite.dev
</VirtualHost>
I don't think that matters.我不认为这很重要。 Netbeans doesn't even start the debug session.
Netbeans 甚至不启动调试会话。 It just opens the
Run Configuration
window suggesting I should change Index File
field according to the warning.它只是打开
Run Configuration
窗口,建议我应该根据警告更改Index File
字段。
右键单击您的项目 > Properties > Sources > Web Root > 单击 Browse... 并选择您的根 - 在您的情况下它将是“web”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.