Jitamin配置nginx


  1. server {
  2. listen 80;
  3. server_name jitamin.yourdomain.com;
  4. root "/var/www/jitamin/public";
  5. index index.php;
  6. charset utf-8;
  7. location / {
  8. try_files $uri $uri/ /index.php?$query_string;
  9. }
  10. access_log off;
  11. error_log /var/log/nginx/jitamin.yourdomain.com-error.log error;
  12. sendfile off;
  13. client_max_body_size 100m;
  14. location ~ \.php$ {
  15. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  16. fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
  17. #fastcgi_pass 127.0.0.1:9000;
  18. fastcgi_index index.php;
  19. include fastcgi_params;
  20. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  21. fastcgi_intercept_errors off;
  22. fastcgi_buffer_size 16k;
  23. fastcgi_buffers 4 16k;
  24. }
  25. location ~ /\.ht {
  26. deny all;
  27. }
  28. }

BLOG

搜索文章