diff --git a/nginx-sample.conf b/nginx-sample.conf index f826d21d..6e13122b 100644 --- a/nginx-sample.conf +++ b/nginx-sample.conf @@ -1,25 +1,25 @@ server { - listen 80; - root /home/otserv/www/public; - index index.php; - server_name your-domain.com; + listen 80; + root /home/otserv/www/public; + index index.php; + server_name your-domain.com; + + location ~ /system { + deny all; + return 404; + } - location / { - try_files $uri $uri/ /index.php; - } + location ~ /\.ht { + deny all; + } - location ~ \.php$ { - include snippets/fastcgi-php.conf; - fastcgi_read_timeout 240; - fastcgi_pass unix:/var/run/php/php7.2-fpm.sock; - } + location / { + try_files $uri $uri/ /index.php; + } - location ~ /\.ht { - deny all; - } - - location /system { - deny all; - return 404; - } -} + location ~ \.php$ { + include snippets/fastcgi-php.conf; + fastcgi_read_timeout 240; + fastcgi_pass unix:/var/run/php/php7.3-fpm.sock; + } +} \ No newline at end of file