29 lines
435 B
Plaintext
Raw Normal View History

2023-08-30 12:22:03 +03:00
server {
2023-09-13 18:36:38 +03:00
listen [::]:80 default;
2023-08-30 12:22:03 +03:00
2023-09-13 18:36:38 +03:00
allow 0200::/7;
deny all;
root /var/www/html;
index index.html index.htm index.nginx-debian.html index.php;
server_name _;
location / {
2023-09-29 20:02:56 +03:00
try_files $uri $uri/ =404 @yggtracker;
2023-09-13 18:36:38 +03:00
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php8.1-fpm.sock;
}
location ~ /\. {
deny all;
}
2023-09-29 20:02:56 +03:00
location @yggtracker {
rewrite ^/(.*)$ /index.php?$1 last;
}
2023-08-30 12:22:03 +03:00
}