2016-06-22 67 views
0

我們碼頭工人,墨盒安裝rstudio並配置它的工作如下爲rstudio配置nginx的代理通過ssh隧道

https://support.rstudio.com/hc/en-us/articles/200552326-Running-RStudio-Server-with-a-Proxy

爲了使用子URI:example.com/rstudio。這是一種工作情況,而服務器example.com位於防火牆後面。要訪問網站背後的牆上我通常喜歡隧道

ssh -L 8000:example.com:80 other_server 

當我這樣做對example.com我可以加載像example.com/test.html頁。但是,當我嘗試localhost:8000/rstudio時,它會將我映射回example.com/rstudio

有什麼我可以添加到鏈接的文檔頁面,使通過隧道工作的配置?

回答

0

我可以建議你快速&骯髒的黑客:

  1. 添加example.com = 127.0.0.1在本地PC
  2. 的ssh -L 8000:remote_server_ip:80 other_server
  3. 儘量去http://example.com/rstudio

它可以通過你的rstudio實例的mod_rewrite引起我覺得

查看here瞭解SSH隧道的更多示例,也許它也有幫助。

+0

你能解釋一下你的意思嗎?>在你的本地PC上添加example.com = 127.0.0.1?添加到什麼? – abalter

+0

將它添加到您的本地主機文件,對不起 – Valentin