server { listen 443 ssl http2 default_server; listen [::]:443 ssl http2 default_server; server_name www.libraryofcode.org; #ssl_certificate /etc/ssl/private/ov.chain.crt; #ssl_certificate_key /etc/ssl/private/ov.key.pem; ssl_certificate /etc/nginx/ssl/org.chain.crt; ssl_certificate_key /etc/nginx/ssl/org.key.pem; root /var/www/wordpress; include /var/www/wordpress/hidemywpghost.conf; index index.php; location / { try_files $uri $uri/ /index.php?$args; } location ~ \.php$ { include fastcgi_params; fastcgi_intercept_errors on; # Point to PHP 8.1-FPM socket fastcgi_pass unix:/run/php/php8.1-fpm.sock; # Alternatively, use a TCP address if configured: # fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ { expires max; log_not_found off; } location = /robots.txt { allow all; log_not_found off; access_log off; } location = /ads.txt { root /var/www/int/1; } }