Advertisement
Guest User

Untitled

a guest
Jun 19th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.53 KB | None | 0 0
  1. location /
  2.         {
  3.                 try_files $uri $uri/ /index.php$request_uri;
  4.         }
  5.  
  6.         location /upload
  7.         {
  8.                 autoindex off;
  9.         }
  10.  
  11.         location ^~ /index.php
  12.         {
  13.                 internal;
  14.                 include fastcgi.conf;
  15.                 fastcgi_split_path_info ^(\/index\.php)(.*)$;
  16.                 fastcgi_param PATH_INFO $fastcgi_path_info;
  17.                 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  18.                 fastcgi_pass php-fpm;
  19.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement