Guest User

Untitled

a guest
Nov 21st, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. server {
  2. listen 80;
  3.  
  4. root /app/dir;
  5. index index.php index.html;
  6.  
  7. client_max_body_size 20M;
  8.  
  9. send_timeout 300;
  10.  
  11. location = /favicon.ico { log_not_found off; access_log off; }
  12. location = /robots.txt { log_not_found off; access_log off; allow all; }
  13. location ~* \.(css|gif|ico|jpeg|jpg|js|png)$ {
  14. expires max;
  15. log_not_found off;
  16. }
  17.  
  18. location / {
  19. #try_files $uri $uri/ =404;
  20. try_files $uri $uri/ /index.php$is_args$args;
  21. }
  22.  
  23. location ~ \.php$ {
  24. try_files $uri =404;
  25. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  26. fastcgi_pass php-7.1:9000;
  27. fastcgi_index index.php;
  28. include fastcgi_params;
  29. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  30. fastcgi_param PATH_INFO $fastcgi_path_info;
  31. fastcgi_read_timeout 300;
  32. }
  33. }
Add Comment
Please, Sign In to add comment