Guest User

Untitled

a guest
Jul 17th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1.  
  2. server {
  3. listen 80;
  4. server_name xxxxxxxxx;
  5.  
  6. root /var/www/xxxxxxxxx/html;
  7. access_log /var/www/xxxxxxxxx/logs/access.log;
  8. error_log /var/www/xxxxxxxxx/logs/error.log;
  9.  
  10. # underscores
  11. underscores_in_headers on;
  12.  
  13. # upload
  14. client_body_temp_path /tmp;
  15. client_max_body_size 2G;
  16. client_body_in_file_only clean;
  17.  
  18. # index
  19. location / {
  20. index index.php index.html index.htm;
  21. }
  22.  
  23. # php
  24. location ~ ^(.*\.php).*$ {
  25.  
  26. if (!-f $document_root$1) {
  27. return 404;
  28. }
  29.  
  30. fastcgi_pass_request_body off;
  31. fastcgi_pass unix:/var/run/php-fpm/php5.sock;
  32. fastcgi_index index.php;
  33. fastcgi_param SCRIPT_FILENAME $document_root$1;
  34. fastcgi_param REQUEST_BODY_FILE $request_body_file;
  35. fastcgi_param XPWETISE $http_x_pwet_ise;
  36. include fastcgi_params;
  37. }
  38. }
Add Comment
Please, Sign In to add comment