server { listen 80 default_server; listen [::]:80 default_server;
server_name resona.top;
root /NGINX-ROOT-PATH/; index index.php index.html index.htm index.nginx-debian.html;
location / { # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. try_files $uri $uri/ =404; }
location ~ .*\.php(\/.*)*$ { #NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini include fastcgi_params; fastcgi_intercept_errors on; fastcgi_pass unix:/run/php/php8.2-fpm.sock; fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name; }
}
server { listen 443 ssl;
server_name resona.top;
client_max_body_size 1024m;
root /NGINX-ROOT-PATH/; index index.php index.html index.htm;
location / { # First attempt to serve request as file, then # as directory, then fall back to displaying a 404. try_files $uri $uri/ =404; }
location ~ .*\.php(\/.*)*$ { #NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini include fastcgi_params; fastcgi_intercept_errors on; fastcgi_pass unix:/run/php/php8.2-fpm.sock; fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name; } }