Questions tagged «kohana»

3
nginx + php-fpm-我的$ _GET参数在哪里?
我这里有一个奇怪的问题。我只是从apache + mod_php移到了nginx + php-fpm。除了这个问题,一切都进行得很好。 我有一个网站,例如example.com。当我访问它时,就像example.com?test=get_param $_SERVER['REQUEST_URI']是/?test=get_param,还有一个$_GET['test']。 但是,当我访问example.com/ajax/search/?search=get_param $_SERVER['REQUEST_URI']时/ajax/search/?search=get_param仍然没有$_GET['search'](有没有$_GET在所有的阵列)。 我正在使用Kohana框架。哪个路由/ajax/search到控制器,但是我已经投入了phpinfo(),index.php所以我要$_GET在框架执行任何操作之前检查变量(这意味着消失的get参数不是框架的错)。 我的nginx.conf是这样的 worker_processes 4; pid logs/nginx.pid; events { worker_connections 1024; } http { index index.html index.php; autoindex on; autoindex_exact_size off; include mime.types; default_type application/octet-stream; server_names_hash_bucket_size 128; log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log …
34 nginx  php-fpm  kohana 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.