国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

nginx設(shè)定反向代理,論壇提交就暴露代理的域名
習(xí)慣沉默
習(xí)慣沉默 2017-05-16 17:22:54
0
2
768

初次使用nginx,用nginx配置了反向代理,配置如下:

server
{
    listen 80;
    server_name localhost;
    location ~/bbs/ {
        proxy_redirect off;
        proxy_set_header Host bbs.example.com:8771;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_pass http://bbs.example.com:8771;
    }
}

想實(shí)現(xiàn) 造訪 www.example.com/bbs/ 就能代理到 http://bbs.example.com:8771 ,這樣設(shè)定也能正常存取。可是就是有個(gè)問題,論壇是jforum的,在論壇一回貼,網(wǎng)域就還是會(huì)跳轉(zhuǎn)回實(shí)際位址http://bbs.example.com:8771,猜測(cè)是「 proxy_set_header Host bbs.example.com:8771 ;” 這個(gè)地方的問題。還請(qǐng)大大們答疑解惑....

習(xí)慣沉默
習(xí)慣沉默

全部回覆(2)
僅有的幸福

試試

proxy_redirect default

為什麼要off?

淡淡煙草味

推薦看看這篇文章,是內(nèi)容替換的。
http://drops.wooyun.org/tips/6403

最新下載
更多>
網(wǎng)站特效
網(wǎng)站源碼
網(wǎng)站素材
前端模板