youbbs avatar

BAE nginx 反向代理配置

🕥 by youbbs

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
###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 反向代理配置"的评论

写一条评论

Based on Golang + fastHTTP + sdb | go1.16.3 Processed in 1ms