禅道nginx配置

禅道nginx配置

对于禅道在nginx下的布置
这边默认的是在服务器站点根目录下的www文件中访问
所以设置的地址为
root /www/服务器默认地址/站点地址/www/;

然后配置伪静态访问
[php]
location / {
if (!-e $request_filename) {
rewrite /(.*)$ /index.php/$1 last;
break;
}
}
location ~ \.php {
include fastcgi.conf;
set $path_info "";
set $real_script_name $fastcgi_script_name;
if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") {
set $real_script_name $1;
set $path_info $2;
}
fastcgi_param SCRIPT_FILENAME $document_root$real_script_name;
fastcgi_param SCRIPT_NAME $real_script_name;
fastcgi_param PATH_INFO $path_info;
}
[/php]

发表评论

© 2022. powered by PHP 个人小站