server_name www.example.ir example.ir;
root /home/example/public_html;
index index.php;
location '/.well-known/acme-challenge' {
default_type "text/plain";
root /home/example/public_html/;
}
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
root /home/example/public_html/;
fastcgi_intercept_errors on;
fastcgi_pass unix:/run/php-fpm/www.sock;
include /etc/nginx/fastcgi_params;
}
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires max;
log_not_found off;
}
}
That's not the full config
no wait this isn't even part where that tls settings are
Обсуждают сегодня