Nginx Server Block For WordPress (SSL Version)

sudo nano /etc/nginx/sites-available/default ## this block redirects all HTTP/HTTPS www traffic to non-www version server { server_name www.example.com; listen *:80; listen [::]:80 ipv6only=on; listen *:443 ssl; listen [::]:443 ssl ipv6only=on; ssl_certificate /etc/ssl/nginx.crt; ssl_certificate_key /etc/ssl/nginx.key; ## enable below to activate CloudFlare Authenticated Origin Pulls ## copy cloudflare.crt from https://blog.cloudflare.com/protecting-the-origin-with-tls-authenticated-origin-pulls/ # ssl_client_certificate /etc/ssl/cloudflare.crt; # ssl_verify_client on; return … Continue reading Nginx Server Block For WordPress (SSL Version)