Advertisement
Guest User

Untitled

a guest
May 12th, 2017
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. server {
  2. listen 443 ssl http2;
  3. listen [::]:443 ssl http2;
  4.  
  5. ssl_certificate /etc/letsencrypt/live/servername.com/fullchain.pem;
  6. ssl_certificate_key /etc/letsencrypt/live/servername.com/privkey.pem;
  7.  
  8. server_name servername.com www.servername.com;
  9.  
  10. access_log /var/www/logs/access.log;
  11. error_log /var/www/logs/error.log;
  12.  
  13. client_body_buffer_size 128k;
  14. fastcgi_connect_timeout 90;
  15. fastcgi_send_timeout 180;
  16. fastcgi_read_timeout 180;
  17. fastcgi_buffer_size 1024K;
  18. fastcgi_buffers 8 512k;
  19. fastcgi_busy_buffers_size 1024k;
  20. fastcgi_temp_file_write_size 1024k;
  21.  
  22. proxy_buffer_size 128k;
  23. proxy_buffers 4 256k;
  24. proxy_busy_buffers_size 256k;
  25.  
  26. root /var/www/public/;
  27. index index.php index.html;
  28.  
  29. location / {
  30. try_files $uri $uri/ /index.php?$args;
  31. }
  32.  
  33. location ~ \.php$ {
  34. try_files $uri =404;
  35. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  36. fastcgi_pass 127.0.0.1:9000;
  37. fastcgi_index index.php;
  38. include fastcgi_params;
  39. }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement