2023-09-29 20:02:56 +03:00

29 lines
435 B
Plaintext

server {
listen [::]:80 default;
allow 0200::/7;
deny all;
root /var/www/html;
index index.html index.htm index.nginx-debian.html index.php;
server_name _;
location / {
try_files $uri $uri/ =404 @yggtracker;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php8.1-fpm.sock;
}
location ~ /\. {
deny all;
}
location @yggtracker {
rewrite ^/(.*)$ /index.php?$1 last;
}
}