server { server_name www.islandadvantages.com islandadvantages.com new.islandadvantages.com; root /tmp/www; location /.well-known { root /tmp/www; } location / { return 301 https://$host$request_uri; } } server { listen 443 ssl; server_name islandadvantages.com new.islandadvantages.com; ssl_certificate /etc/nginx/ssl/ia-cert.pem; ssl_certificate_key /etc/nginx/ssl/ia-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/ia_com.sock; } }