[nginx] nginx 域名转发如何设置

[nginx] nginx 域名转发怎么设置啊

http://dj.aa.com/e/1/Play_13360.html   想这样的地址 

转发到

 http://dj.aa.com:81/e/1/Play_13360.html  这样 就是在地址后加个端口   就有e 目录 下的连接才有效果 

********************************

 

http://dj.aa.com/e/1/Play_160.html   想这样的地址   转发到

 http://dj.aa.com:81/e/1/Play_160.html  这样之类的!              

 

只有进http://dj.aa.com/e/1/Play_15.html   这样的才转 

http://dj.aa.com/aa /1/Play_160.html   这样其他不转

规则怎么写啊




       location ~ ^/.*(\.php




\.asp)$ {

             proxy_pass   http://www.abc.com;

         }

[nginx] nginx 域名转发如何设置

相关文章:

你感兴趣的文章:

标签云: