WordPress Under Configure SSL certificate,
server { listen 443; server_name demo.example.com; SSL on; /data/; Ssl_certificate /cert/Cert.pem; Ssl_certificate_key /cert/cert.key; Ssl_session_timeout 5m; Ssl_ciphers ECDHE-rsa-aes128-gcm-sha256:ecdhe:ecdh:aes:high:! null:!anull:! md5:! Adh:! RC4; Ssl_protocols TLSv1 TLSv1. 1 TLSv1.2; Ssl_prefer_server_ciphers on;}
When HTTP is accessed, the resources under/wp-content/are all 404:
After changing the configuration to
server { listen 443 SSL ; server_name demo.example.com; /data/; Ssl_certificate /cert/Cert.pem; Ssl_certificate_key /cert/cert.key; Ssl_session_timeout 5m; Ssl_ciphers ECDHE-rsa-aes128-gcm-sha256:ecdhe:ecdh:aes:high:! null:!anull:! md5:! Adh:! RC4; Ssl_protocols TLSv1 TLSv1. 1 TLSv1.2; Ssl_prefer_server_ciphers on;}
All resource requests are normal!
Nginx Configuration https wordpress site, wp-content directory resource 404 Solution