File: //var/lib/letsencrypt/backups/1771904920.8405778/wordpress_2
server {
listen 80;
server_name xpay-mariam-shop.shop www.xpay-mariam-shop.shop;
# Redirect all HTTP to HTTPS
return 301 https://$host$request_uri;
}
server {
listen 443 ssl http2;
server_name xpay-mariam-shop.shop www.xpay-mariam-shop.shop;
root /var/www/html/wordpress/public;
index index.php index.html index.htm;
ssl_certificate /etc/letsencrypt/live/www.xpay-mariam-shop.shop/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/www.xpay-mariam-shop.shop/privkey.pem; # managed by Certbot
# Recommended SSL settings for Apple Pay
ssl_protocols TLSv1.2 TLSv1.3;
ssl_prefer_server_ciphers on;
ssl_ciphers 'ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-RSA-AES128-GCM-SHA256';
# Allow Apple Pay domain verification
location ^~ /.well-known/ {
allow all;
}
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php8.3-fpm.sock;
}
location ~ /\.ht {
deny all;
}
}