ia_com.nginx 798 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. server {
  2. server_name www.islandadvantages.com islandadvantages.com new.islandadvantages.com;
  3. root /tmp/www;
  4. location /.well-known {
  5. root /tmp/www;
  6. }
  7. location / {
  8. return 301 https://$host$request_uri;
  9. }
  10. }
  11. server {
  12. listen 443 ssl;
  13. server_name islandadvantages.com new.islandadvantages.com;
  14. ssl_certificate /etc/nginx/ssl/ia-cert.pem;
  15. ssl_certificate_key /etc/nginx/ssl/ia-key.pem;
  16. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  17. access_log /var/log/nginx/pbp.access.log;
  18. location /.well-known {
  19. root /tmp/www;
  20. }
  21. location /robots.txt {
  22. alias /var/lib/django/pbp_com/templates/robots.txt;
  23. }
  24. location /media {
  25. root /var/lib/django/pbp_com;
  26. }
  27. location / {
  28. include /etc/nginx/uwsgi_params;
  29. uwsgi_pass unix:/var/lib/django/run/ia_com.sock;
  30. }
  31. }