Advertisement
Guest User

nginx config :: vurtuality.conf

a guest
Jun 16th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. server {
  2. server_name vurtuality.com www.vurtuality.com;
  3.  
  4. root /var/www/vurtuality/home;
  5. index index.html index.htm index.php;
  6. charset utf-8;
  7.  
  8. location / {
  9. try_files $uri $uri/ /index.php?$query_string;
  10. }
  11.  
  12. location = /favicon.ico { access_log off; log_not_found off; }
  13. location = /robots.txt { access_log off; log_not_found off; }
  14.  
  15. access_log off;
  16.  
  17. # allow larger file uploads and longer script runtimes
  18. client_max_body_size 100m;
  19. client_body_timeout 120s;
  20.  
  21. sendfile off;
  22.  
  23. location ~ \.php$ {
  24. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  25. fastcgi_pass unix:/run/php/php7.2-fpm.sock;
  26. fastcgi_index index.php;
  27. include fastcgi_params;
  28. fastcgi_param PHP_VALUE "upload_max_filesize = 100M \n post_max_size=100M";
  29. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  30. fastcgi_param HTTP_PROXY "";
  31. fastcgi_intercept_errors off;
  32. fastcgi_buffer_size 16k;
  33. fastcgi_buffers 4 16k;
  34. fastcgi_connect_timeout 300;
  35. fastcgi_send_timeout 300;
  36. fastcgi_read_timeout 300;
  37. }
  38.  
  39. location ~ /\.ht {
  40. deny all;
  41. }
  42.  
  43. listen 443 ssl; # managed by Certbot
  44. ssl_certificate /etc/letsencrypt/live/vurtuality.com/fullchain.pem; # managed by Certbot
  45. ssl_certificate_key /etc/letsencrypt/live/vurtuality.com/privkey.pem; # managed by Certbot
  46. include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
  47. ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
  48.  
  49. }
  50. server {
  51. if ($host = vurtuality.com) {
  52. return 301 https://$host$request_uri;
  53. } # managed by Certbot
  54.  
  55.  
  56. listen 80;
  57. server_name vurtuality.com;
  58. return 404; # managed by Certbot
  59.  
  60.  
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement