BAE nginx 反向代理配置

By youbbs at 2014-01-09 05:59:43 • 1296次点击

一份可用的nginx 反向代理配置,用来给BAE 绑域名。

###BAE
server {
    listen 80;
    server_name www.yourdomain.com;
    
    location / {
        proxy_redirect off;
        proxy_pass http://yourapp.duapp.com;
        proxy_set_header Host "yourapp.duapp.com"; 
        proxy_set_header X-Real-IP $remote_addr; 
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        access_log off;
        error_log off;
    }
    
}

《BAE 不让绑域名了,用nginx 反向代理绑定域名》 http://www.ijd8.com/t/31 1

bae, nginx


求新版

新方法

小硕 at 2014-03-28 21:36:53
1
登录 后发表评论