nginx替换输出文本
location ~ .*\.(php|php5)?($|/)
{
gzip off;
proxy_set_header Accept-Encoding "";
sub_filter '旧文本1' '新文本1';
sub_filter '旧文本2' '新文本2';
sub_filter_once off;
fastcgi_ignore_client_abort on;
proxy_ignore_client_abort on;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
本文标题:nginx替换输出文本
本文链接:https://www.haomeiwen.com/subject/gotzzltx.html
网友评论