风在吹屌在飞 发表于 2016-8-13 19:15:40

nginx怎么给每个虚拟主机添加一段代码?

比如在每个虚拟主机的首页文件加上统计代码

canglaoshi 发表于 2016-8-13 19:27:48

[*]location / {
[*]                default_type text/html;
[*]                subs_filter_types text/css text/xml;
[*]               echo_after_body '';
[*]               subs_filter '' '111' g;
[*]}
[*]复制代码

风在吹屌在飞 发表于 2016-8-13 19:29:30

"
谢谢啊,我去试试
页: [1]
查看完整版本: nginx怎么给每个虚拟主机添加一段代码?