meta_exporter.conf 534 B

12345678910111213141516171819
  1. server {
  2. listen 9081;
  3. index index.php index.html;
  4. server_name _;
  5. error_log /var/log/nginx/error.log;
  6. access_log /var/log/nginx/access.log;
  7. root /meta_exporter;
  8. client_max_body_size 10M;
  9. location ~ \.php$ {
  10. client_max_body_size 10M;
  11. try_files $uri =404;
  12. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  13. fastcgi_pass phpfpm:9001;
  14. fastcgi_index pipe.php;
  15. include fastcgi_params;
  16. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  17. fastcgi_param PATH_INFO $fastcgi_path_info;
  18. }
  19. }