listen 80;
listen [::]:80;
server_name surf.site.biz;
access_log off;
error_log /var/log/nginx/error.surf.log;
root /var/www/html/public;
index index.php;
location /surfing {
try_files $uri $uri/ /index.php?$query_string;
}
location / {
deny all;
}
if (!-d $request_filename) {
rewrite ^/(.+)/$ /$1 permanent;
}
location ~* \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
}