尝试打开时收到此错误消息
/app_dev.PHP
An error occurred while loading the web debug toolbar (404: Not Found). Do you want to open the profiler?
当我点击确定,我得到的错误:
app_dev.PHP/_profiler/5053258a822e1
和
404 Not found
我正在使用Nginx
非常感谢您的帮助.
编辑:这是错误日志:
[error] 18369#0: *9 open() "/var/www/Symfony/web/app_dev.PHP/_wdt/5056f875afc98" Failed (20: Not a directory),client: 127.0.0.1,server: symfony,request: "GET /app_dev.PHP/_wdt/5056f875afc98 HTTP/1.1",host: "symfony",referrer: "http://symfony/app_dev.PHP" [error] 18369#0: *9 open() "/var/www/Symfony/web/404" Failed (2: No such file or directory),referrer: "http://symfony/app_dev.PHP"
编辑2:
当我尝试访问app_dev.PHP页面打开,但没有工具栏,当我尝试与app_dev.PHP /我得到
**Oops! An Error Occurred The server returned a "404 Not Found". Something is broken. Please e-mail us at [email] and let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused. **
错误.
我知道这不完全是你所问的,但可能会帮助未来的人搜索这个问题,像@yvoyer建议的,我的问题是尾随的斜杠,我的服务器使用Nginx和fpm,在Nginx //不是euqal /,所以我不得不对我的虚拟主机conf做一些修复,并且在此之后工作正常.我只需要为任何需要的人粘贴conf,或者建议一个更好的.
原文链接:https://www.f2er.com/php/139318.htmllocation / { try_files $uri @pass_to_symfony; } location ~ /app_dev.PHP/ { try_files $uri @pass_to_symfony_dev; } location @pass_to_symfony{ rewrite ^ /app.PHP?$request_uri last; } location @pass_to_symfony_dev{ rewrite ^ /app_dev.PHP?$request_uri last; } location ~ ^/app(_dev)?\.PHP($|/) { include fastcgi_params; fastcgi_pass unix:/var/run/PHP5-fpm.sock; # replace with your sock path }