|
$config['uri_protocol'] = 'PATH_INFO';
这是我nginx的配置
- server {
- listen 8083;
- # 这个表示 网站域名, 可以是二级甚至多级域名
- server_name localhost;
- # 表示默认索引文件
- index index.html index.htm index.php;
- # 该站点对应的网站根目录所在
- # root /mnt/hgfs/website/basic/;
- root /mnt/hgfs/website/merchant;
- location / {
- root html/kdw;
- index index.php;
- try_files $uri $uri/ /index.php?$uri&$args;
- }
- location ~ .*\.(php|php5)?$
- {
- #fastcgi_pass unix:/tmp/php-cgi.sock;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_split_path_info ^((?U).+.php)(/?.+)$;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_param PATH_INFO $fastcgi_path_info;
- fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
- #fastcgi_param PATH_INFO $fastcgi_path_info;
- include fastcgi.conf;
- if (!-e $request_filename) {
- rewrite ^(.*)$ /$1 last;
- break;
- }
- }
- location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
- {
- expires 30d;
- }
- }
复制代码
|
|