Advertisement
Guest User

php.conf

a guest
Aug 9th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.48 KB | None | 0 0
  1. # pass the PHP scripts to FastCGI server
  2. #
  3. # See conf.d/php-fpm.conf for socket configuration
  4. #
  5. index index.php index.html index.htm;
  6.  
  7. location ~ \.(php|phar)(/.*)?$ {
  8.     fastcgi_split_path_info ^(.+\.(?:php|phar))(/.*)$;
  9.  
  10.     fastcgi_intercept_errors on;
  11.     fastcgi_index  index.php;
  12.     include        fastcgi_params;
  13.     fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
  14.     fastcgi_param  PATH_INFO $fastcgi_path_info;
  15.     fastcgi_pass   php-fpm;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement