You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

default.conf 520B

1234567891011121314151617181920212223242526
  1. server {
  2. listen 80;
  3. listen [::]:80;
  4. server_name _;
  5. root /webroot/;
  6. client_max_body_size 100m;
  7. access_log /dev/stdout;
  8. error_log /dev/stdout info;
  9. location ~ ^\/share_v2.php\/([^\/]+\/[^\/\?]+)(?:.*)$ {
  10. fastcgi_pass unix:/var/run/php-fpm.sock;
  11. fastcgi_param SCRIPT_FILENAME $document_root/share_v2.php;
  12. fastcgi_param UPLOADED_FILENAME $1;
  13. include fastcgi_params;
  14. fastcgi_intercept_errors on;
  15. }
  16. location = / {
  17. return 404;
  18. }
  19. location ~* ^\/[^\/]+\.(php|sh|conf)$ {
  20. return 404;
  21. }
  22. }