Advertisement
Guest User

Untitled

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