nginx 多域名rewrite問題
过去多啦不再A梦
过去多啦不再A梦 2017-05-16 17:16:00
0
1
458

1、請求轉送:

https://abc.*.*/test.do转发至https://efg.*.*/hij/haha/test.do

2、要求:

1.abc.*.*与efg.*.*域名对应,如abc.test.com-->efg.test.com, abc.top.com-->efg.top.com
2.转发时追加参数from=testargs

3、nginx配置

server
{
    listen       443;
    server_name  abc.test.com;
    server_name  abc.top.com;
    server_name  res.abc.top.com;
    server_name  abc.77676.com;
    server_name  abc.446464.com;
    server_name  abc.46464.com;
    server_name  abc.787873.com;
    ……

這種rewrite要怎麼寫?謝謝。

过去多啦不再A梦
过去多啦不再A梦

全部回覆(1)
阿神

雷雷

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!