note 116857 added to yaf.tutorials
| From: | winston | Date: | Wed, 11 Mar 2015 04:30:39 +0000 |
| Subject: | note 116857 added to yaf.tutorials | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-201917@lists.php.net to get a copy of this message | ||
When you use nginx & php-fpm config for yaf frame, you must set PATH_INFO support in nginx.
Otherwise, it will not work.
Demo :
location / {
try_files $uri $uri/ @path_rw;
}
#path_info is needed by some php frameworks like yaf/thinkphp
location @path_rw {
rewrite ^/(.*)$ /index.php/$1 last;
}
location ~ \.php {
fastcgi_pass unix:/dev/shm/php-cgi.sock;
fastcgi_index index.php;
include fastcgi.conf;
fastcgi_split_path_info ^(.+?\.php)(/.+)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
----
Server IP: 72.52.91.14
Probable Submitter: 103.224.82.192
----
Manual Page -- http://php.net/manual/en/yaf.tutorials.php
Edit -- https://master.php.net/note/edit/116857
Del: integrated -- https://master.php.net/note/delete/116857/integrated
Del: useless -- https://master.php.net/note/delete/116857/useless
Del: bad code -- https://master.php.net/note/delete/116857/bad+code
Del: spam -- https://master.php.net/note/delete/116857/spam
Del: non-english -- https://master.php.net/note/delete/116857/non-english
Del: in docs -- https://master.php.net/note/delete/116857/in+docs
Del: other reasons-- https://master.php.net/note/delete/116857
Reject -- https://master.php.net/note/reject/116857
Search -- https://master.php.net/manage/user-notes.php