复制黏贴下来格式都没了,怎么办?http://hi.ktsee.com/545.htmlserver { listen 80; server_name www.ktsee.com; root /data/wwwroot/www.ktsee.com; index index.html index.htm index.php; #charset koi8-r; access_log /data/wwwlogs/www.ktsee.com.access.log main; location / { if (!-e $request_filename) { rewrite ^/(.*) /index.php?s=/$1 last; #rewrite ^(.*) index.php?s=$1 last; } } error_page 404 /404.html; error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } location ~ \.php/?.* { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; 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; } location ~ /.ht { deny all; } location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { expires 10d; } location ~ .*\.(js|css)?$ { expires 1d; }}
添加回答
举报
0/150
提交
取消