Advertisement
Guest User

Untitled

a guest
Apr 30th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. server {
  2. listen 80;
  3. listen 443;
  4.  
  5. ssl on;
  6. ssl_certificate /;
  7. ssl_certificate_key /;
  8. server_name ;
  9.  
  10.  
  11. root /;
  12.  
  13. location / {
  14. index index.php index.html index.htm;
  15. }
  16.  
  17. error_page 404 /404.html;
  18. location = /404.html {
  19. root /usr/share/nginx/html;
  20. }
  21.  
  22. error_page 500 502 503 504 /50x.html;
  23. location = /50x.html {
  24. root /usr/share/nginx/html;
  25. }
  26.  
  27. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  28. #
  29. location ~ .php$ {
  30. # connect to a unix domain-socket:
  31.  
  32. fastcgi_pass unix:/var/run/php7-fpm.sock;
  33. fastcgi_index index.php;
  34.  
  35. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  36. fastcgi_param SCRIPT_NAME $fastcgi_script_name;
  37.  
  38. fastcgi_buffer_size 128k;
  39. fastcgi_buffers 256 16k;
  40. fastcgi_busy_buffers_size 256k;
  41. fastcgi_temp_file_write_size 256k;
  42.  
  43. # This file is present on Debian systems..
  44. include fastcgi_params;
  45. }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement