2016-12-05 118 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) –

相关问题