server { server_name www.weeklypacket.com weeklypacket.com new.weeklypacket.com; root /tmp/www; location /.well-known { root /tmp/www; } location / { return 301 https://$host$request_uri; } } server { listen 443 ssl; server_name weeklypacket.com new.weeklypacket.com; ssl_certificate /etc/nginx/ssl/wp-cert.pem; ssl_certificate_key /etc/nginx/ssl/wp-key.pem; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; access_log /var/log/nginx/pbp.access.log; location /.well-known { root /tmp/www; } location /robots.txt { alias /var/lib/django/pbp_com/templates/robots.txt; } location /media { root /var/lib/django/pbp_com; } location / { include /etc/nginx/uwsgi_params; uwsgi_pass unix:/var/lib/django/run/wp_com.sock; } }