
이것은 내 nginx conf 위치 블록입니다.
location /foo {
alias /var/www/foo;
index index.php;
try_files $uri $uri/ /index.php;
location /foo/index.php {
include snippets/fastcgi-php.conf;
fastcgi_param SCRIPT_FILENAME $request_filename;
fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
}
}
/foo에 데이터를 게시하면 index.php로 끝나지 않습니다( $_POST
비어 있음).
여기서 비슷한 질문을 찾으려고 노력했지만 모두 다시 작성 규칙이나 더 복잡한 설정이 있었습니다.
nginx가 모든 것을 기본 인덱스로 전달하도록 하려면 어떻게 해야 합니까?
감사해요!