Nginx 使用CloudFlare CDN加速配置
2015-06-07 10:50
1066 查看
- -
#CloudFlare real ip set_real_ip_from 199.27.128.0/21; set_real_ip_from 173.245.48.0/20; set_real_ip_from 103.21.244.0/22; set_real_ip_from 103.22.200.0/22; set_real_ip_from 103.31.4.0/22; set_real_ip_from 141.101.64.0/18; set_real_ip_from 108.162.192.0/18; set_real_ip_from 190.93.240.0/20; set_real_ip_from 188.114.96.0/20; set_real_ip_from 197.234.240.0/22; set_real_ip_from 198.41.128.0/17; set_real_ip_from 162.158.0.0/15; set_real_ip_from 104.16.0.0/12 set_real_ip_from 172.64.0.0/13 ipv6: set_real_ip_from 2400:cb00::/32; set_real_ip_from 2606:4700::/32; set_real_ip_from 2803:f800::/32; set_real_ip_from 2405:b500::/32; set_real_ip_from 2405:8100::/32; real_ip_header CF-Connecting-IP; #Proxy Configuration proxy_set_header Host $proxy_host; proxy_set_header User-Agent $http_user_agent; proxy_set_header referer http://$proxy_host$request_uri; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header Accept-Encoding ""; proxy_set_header Cf-Ray ""; proxy_set_header X-Forwarded-Proto ""; proxy_set_header CF-Visitor ""; proxy_set_header CF-Connection-IP "";
相关文章推荐
- yum安装nginx+PHP+Mysql
- nginx + mysql + php-fpm 环境
- nginx支持url的PATHINFO
- mac安装nginx
- nginx
- Nginx 虚拟主机 VirtualHost 配置
- Linux tar包安装Nginx
- Win7下Nginx的安装与配置
- window nginx 启动无提示错误,却没有listen 80端口
- 在 Mac 上搭建 Nginx PHP Mysql 开发环境
- 在Centos上编译安装nginx
- centos直接yum安装nginx
- nginx1.6.2 + php 5.4 出现 access denied
- nginx防盗链
- 笔记一下:配置nginx输入任何地址都跳转至维护页面
- nginx 配置解析(11)——merge
- nginx 入门配置
- nginx的搭建详解
- nginx: 响应体太大
- nginx + FastDFS分布式文件服务器搭建及配置