nginx 기본 설치하게 되면 SERVER['PATH_INFO'] 가 공백으로 출력된다.
location ~ ^(.+\.php)(.*)$ {
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
include fastcgi_params;
}
location / {
try_files $uri $uri/ /index.php$request_uri;
}
nginx 공식문서
https://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_split_path_info