Eclipse webserver path mapping issue with PHP project

此生再无相见时 提交于 2019-12-02 05:24:44
hakre

Add PHP2011X as an alias on your webserver, so the address generated by Eclipse does work.

Another solution, but I think Eclipse is really inflexible here, is to define a mapping from the project file paths to project URL paths. But from what I know that is really inflexible and it didn't work most time for me.

So I would go with configuring the webserver instead. If you're using apache, the directive is called Alias.

Edit: You can try to place an Alias directive before the <Directory "C:/xampp/htdocs"> line:

# Map Eclipse Project Name onto webroot (SO #6690405):
Alias /PHP2011X "C:/xampp/htdocs"
<Directory "C:/xampp/htdocs">

Related: Setting up path mapping in PHP and Eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!