2016-12-05 117 views
0

運行Ubuntu LTS 14.04 nginx的1.4.6nginx的 - 隱藏的代理服務器主機+端口+路徑

我有一個互聯網無線站,人們可以聽/直接從winterradio.com(例)流,並得到了下一個在nginx的我的虛擬主機winterradio.com配置:

server { 
server_tokens off; 
listen 80; 
server_name winterradio.com; 
location/{ 
proxy_pass http://radiohost.com:1972/radio 
} 
} 

我的問題是:我怎麼能隱藏誰連接這樣的人proxy_pass網址+端口+文件夾(掛載點),他們只看到http://winterradio.com insteed的http://radiohost.com:1972/radio? 我增加了未來2行:

server_name_in_redirect off; 
proxy_set_header Host $host:$server_port 

這確實的allmost的伎倆,但並不能掩蓋的最後一部分從代理地址/收音機,我無法找到答案的地方周圍。 這可能嗎?我可以隱藏瀏覽器/ radiooplayers的完整代理地址嗎?

+0

有人可以幫我嗎?我被困住了! – iRai

回答

0

將它解決了ssl編譯並啓用了icecast2 & nginx。

+0

這篇文章不是回答這個問題的實際嘗試。請注意[StackOverflow不像討論區](http://stackoverflow.com/tour),它是一個問答網站,每個帖子都是問題或問題的答案。帖子也可以有[評論](http://stackoverflow.com/help/privileges/comment) - 這樣的小句子 - 可以用來批評或請求作者澄清。這應該是一個評論或[新問題](http://stackoverflow.com/questions/ask) –

相關問題