mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-04-02 01:55:31 +00:00
update nginx example
This commit is contained in:
parent
82ce328866
commit
2226eaf243
1 changed files with 25 additions and 3 deletions
|
|
@ -1,6 +1,28 @@
|
||||||
server {
|
server {
|
||||||
listen [::]:80 ipv6only=on default_server;
|
listen [::]:80 default;
|
||||||
|
|
||||||
allow 0200::/7;
|
allow 0200::/7;
|
||||||
deny all;
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~ \.php$ {
|
||||||
|
include snippets/fastcgi-php.conf;
|
||||||
|
fastcgi_pass unix:/run/php/php8.1-fpm.sock;
|
||||||
|
|
||||||
|
# default, mirror, dev, test, prod
|
||||||
|
fastcgi_param PHP_ENV default;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~ /\. {
|
||||||
|
deny all;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue