server { server_name images.kkatarn.ru; listen 443 ssl http2; listen [::]:443 ssl http2; ssl_certificate /etc/letsencrypt/live/images.kkatarn.ru/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/images.kkatarn.ru/privkey.pem; include /etc/letsencrypt/options-ssl-nginx.conf; ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; root /srv/www/kkatarn/images.kkatarn.ru; access_log /srv/www/nginx/logs/images-accesslog.txt main; location / { try_files $uri $uri/ /index.html?q=$request_uri; index index.html; } location ~ \.php$ { fastcgi_index index.php; include fastcgi_params_working; fastcgi_pass unix:/tmp/php83-fpm.socket; } location ~* \.(jpg|jpeg|gif|png|css|js|ico|xml)$ { access_log off; log_not_found off; expires 7d; } location /favicon.ico { root /srv/www/kkatarn/k.ico; } }