HHVM 과 NGINX 연동 기본 설정 fastcgi_php.conf 백업

Last modified by wewe on 2016/05/21 09:01

HHVM 과 NGINX 연동시에 생성되는 기본 설정 fastcgi_php.conf 파일 내용 백업

/etc/nginx/snippets/fastcgi-php.conf


# regex to split $uri to $fastcgi_script_name and $fastcgi_path
fastcgi_split_path_info ^(.+\.php)(/.+)$;

# Check that the PHP script exists before passing it
try_files $fastcgi_script_name =404;

# Bypass the fact that try_files resets $fastcgi_path_info
# see: http://trac.nginx.org/nginx/ticket/321
set $path_info $fastcgi_path_info;
fastcgi_param PATH_INFO $path_info;

fastcgi_index index.php;
include fastcgi.conf;
[email protected]:/etc/nginx/snippets# cat fastcgi-php.conf
# regex to split $uri to $fastcgi_script_name and $fastcgi_path
fastcgi_split_path_info ^(.+\.php)(/.+)$;

# Check that the PHP script exists before passing it
try_files $fastcgi_script_name =404;

# Bypass the fact that try_files resets $fastcgi_path_info
# see: http://trac.nginx.org/nginx/ticket/321
set $path_info $fastcgi_path_info;
fastcgi_param PATH_INFO $path_info;

fastcgi_index index.php;
include fastcgi.conf;
Created by wewe on 2016/05/17 23:24
     

  

Tips

Did you know that you can improve XWiki? Take 5 minutes to fill this survey and help this open source project!

위위비  wewe.be - Powered by XWiki