Mil*_*loš 14 profiler nginx http-status-code-404 symfony symfony-2.1
我试图打开时收到此错误消息
/app_dev.php
An error occurred while loading the web debug toolbar (404: Not Found).
Do you want to open the profiler?
Run Code Online (Sandbox Code Playgroud)
当我点击确定时,我收到错误:
app_dev.php/_profiler/5053258a822e1
Run Code Online (Sandbox Code Playgroud)
和
404 Not found
Run Code Online (Sandbox Code Playgroud)
我正在使用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), 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"
Run Code Online (Sandbox Code Playgroud)
编辑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. **
Run Code Online (Sandbox Code Playgroud)
错误.
Moh*_*ady 10
我知道这是不是正是你问什么,但可能会帮助谁寻找这个问题的未来的人,喜欢@yvoyer建议,我的问题是最后的斜线过,我的服务器使用nginx的和FPM,并在nginx的//不euqal/,所以我不得不在我的虚拟主机conf上做一些修复,之后它运行良好.我只是将conf粘贴给任何需要它的人,或者建议一个更好的.
location / {
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
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
17609 次 |
| 最近记录: |