需求:
如果本地沒有這個url就rewrite到另外伺服器上去請求;
實作:
server {
listen 8080;
if (!-e $request_filename ){
}
}
說明:
當本地web上沒有這個資源的時候,就跳轉到192.168.2.42伺服器上去請求;
本文轉自 shine_forever 51CTO部落格,原文連結:http://blog.51cto.com/shineforever/1619796
需求:
如果本地沒有這個url就rewrite到另外伺服器上去請求;
實作:
server {
listen 8080;
if (!-e $request_filename ){
}
}
說明:
當本地web上沒有這個資源的時候,就跳轉到192.168.2.42伺服器上去請求;
本文轉自 shine_forever 51CTO部落格,原文連結:http://blog.51cto.com/shineforever/1619796