惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

N
Netflix TechBlog - Medium
T
The Blog of Author Tim Ferriss
aimingoo的专栏
aimingoo的专栏
A
About on SuperTechFans
Stack Overflow Blog
Stack Overflow Blog
B
Blog RSS Feed
Microsoft Security Blog
Microsoft Security Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
人人都是产品经理
人人都是产品经理
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
J
Java Code Geeks
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
B
Blog
MongoDB | Blog
MongoDB | Blog
L
LangChain Blog
WordPress大学
WordPress大学
小众软件
小众软件
IT之家
IT之家
腾讯CDC
月光博客
月光博客
量子位
Blog — PlanetScale
Blog — PlanetScale
P
Proofpoint News Feed
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

博客园 - 范圣帅

mono+jexus 之连接数据库 mono+jexus 验证码不显示:System.Drawing CentOS安装epel system 函数 tcp/ip协议listen函数中backlog参数的含义与php-fpm的502 Bad Gateway tengine-2.1.0 + lua + base64 tengine-2.1.0 + GraphicsMagick-1.3.20 ArchLinux 下架设PPTPD VPN服务 - 范圣帅 archlinux 下 nignx + php 出现 no input file specified MAMP PRO 下安装 memcache MAC 版本 phpstorm 配置 theme [转]MinGW编译wxWidgets问题 Eclipse 破解ZendStudio 10.1 shell 快速移动,快捷操作 GDI 画出半透明 MFC 常用关闭窗口 MFC 中全局变量的使用 Unicode下RegQueryValueEx读取注册表值问题
nginx 反向代理
范圣帅 · 2015-01-22 · via 博客园 - 范圣帅

location / {
                error_log /tmp/error.log;
                include proxy.conf;
                expires max;
                proxy_store on;
                proxy_store_access user:rw group:rw all:rw;
                proxy_temp_path /data/www/img.kuboluo.com/;
                if (!-f $request_filename) {
                        proxy_pass    http://img_yfb;
                }
                index  index.html index.htm;

                #image_filter_buffer 8M;
                #try_files /uploads/$1.jpg /uploads/$1.jpg;
        }

proxy_redirect off ;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 50m;
client_body_buffer_size 256k;
proxy_connect_timeout 30;
proxy_send_timeout 30;
proxy_read_timeout 60;
proxy_buffer_size 256k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_temp_file_write_size 256k;
proxy_max_temp_file_size 128m;
proxy_next_upstream http_502 http_504 error timeout invalid_header;

    #location ~* /uploads/photo/(.+)_(\d+)x(\d+)\.(jpg|gif|png)$ {            
        #       set $h $2;
        #       set $w $3;

        #       rewrite /uploads/photo/(.+)_(\d+)x(\d+)\.(jpg|gif|png)$ /uploads/photo/$1.$4 last;

        #       #image_filter test;
        #       image_filter_buffer 2000M;                          
        #       image_filter resize $h $w;

        #       try_files /uploads/photo/$1.$4  /img/notfound.jpg;      
        #}