I'm using nginx with PHP-FPM
My application requires all urls to be redirected to index.php
(see nginx conf)
location / {
root /var/www/app/public/
try_files $uri /index.php?$args;
}
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
try_files $fastcgi_script_name =404;
set $path_info $fastcgi_path_info;
fastcgi_param PATH_INFO $path_info;
fastcgi_index index.php;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
}
To analyze some performance issues I wanted to use the fpm status page. But the status page doesn't show me the real request URI
pid: 1369
state: Idle
start time: 03/Sep/2018:17:34:34 +0200
start since: 15
requests: 4
request duration: 29796
request method: GET
request URI: /index.php
content length: 0
user: -
script: /var/www/app/public/index.php
last request cpu: 67.12
last request memory: 6291456
So it's hard to tell which page is currently processed - is it maybe possible to add some additional info to fpm-status page or change the request URI?
include fastcgi_params;
? Put it back first.include fastcgi_params
andfastcgi_pass
but result is the same