나는 나의 가상 호스트에 대한이 구성을 가지고 :nginx conf의 추가 위치가 404 코드를 반환하는 이유는 무엇입니까?
server {
listen 80;
root /var/www/home;
access_log /var/www/home/access.log;
error_log /var/www/home/error.log;
index index.php index.html index.htm;
server_name home;
location/{
try_files $uri $uri/ /index.php?$args; #if doesn't exist, send it to index.php
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/run/php/php-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PHP_VALUE "error_log=/var/www/home/php_errors.log";
}
location ~* /Admin {
allow 127.0.0.1;
deny all;
}
}
내가 페이지에 액세스하려고/관리자의 nginx는 PHP에 의해 생성 된 성공적인 HTML 콘텐츠와 404 코드를 반환합니다./Admin을 사용하여 위치를 삭제하면 모든 것이 잘됩니다.
추가 위치 문제는 어떻게 얻을 수 있습니까?