Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
113
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2. server_name sandbox.primitiv.media www.sandbox.primitiv.media;
  3. access_log /var/log/sandboxPrimitiv.access.log main;
  4. error_log /var/log/sandboxPrimitiv.error error;
  5. root /var/www/websites/sandbox.primitiv/public_html/;
  6. server_tokens off;
  7. index index.php index.html index.htm;
  8.  
  9. location / {
  10. try_files $uri $uri/ /index.php?$query_string;
  11. }
  12.  
  13.  
  14. location ~ \.php$ {
  15. try_files $uri =404;
  16. fastcgi_pass unix:/run/php-fpm/www.sock;
  17. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  18. fastcgi_index index.php;
  19. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  20. include fastcgi_params;
  21. }
  22.  
  23.  
  24. listen 8080; # managed by Certbot
  25. # ssl_certificate /etc/letsencrypt/live/sandbox.primitiv.media/fullchain.pem; # managed by Certbot
  26. # ssl_certificate_key /etc/letsencrypt/live/sandboxprimitiv.media/privkey.pem; # managed by Certbot
  27. # include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
  28. # ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
  29.  
  30. listen 443 ssl; # managed by Certbot
  31. ssl_certificate /etc/letsencrypt/live/sandbox.primitiv.media/fullchain.pem; # managed by Certbot
  32. ssl_certificate_key /etc/letsencrypt/live/sandbox.primitiv.media/privkey.pem; # managed by Certbot
  33. include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
  34. ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
  35.  
  36. }
  37. server {
  38. if ($host = sandbox.primitiv.media;) {
  39. return 301 https://$host$request_uri;
  40. } # managed by Certbot
  41.  
  42.  
  43. listen 8080;
  44. listen [::]:8080;
  45. server_name sandbox.primitiv.media;
  46. return 404; # managed by Certbot
  47.  
  48. }
Advertisement
RAW Paste Data Copied
Advertisement