myaac/nginx-sample.conf
anyeor 50270f6d6f
Update nginx-sample.conf (#175)
Now we prevent access to system directory and update php version.
2021-10-28 21:39:38 +02:00

25 lines
383 B
Plaintext

server {
listen 80;
root /home/otserv/www/public;
index index.php;
server_name your-domain.com;
location ~ /system {
deny all;
return 404;
}
location ~ /\.ht {
deny all;
}
location / {
try_files $uri $uri/ /index.php;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_read_timeout 240;
fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
}
}