Introspected tunnels to localhost

本地rails服务映射到服务器上,进行外网测试!

ssh -C2qTnN -R 3040:localhost:3000 deploy@xx.xx.xx.xx 本地3000应射到远程服务器3040端口

```bash nginx.conf server { server_name qt.test.growcn.com; underscores_in_headers on; location /{ proxy_pass http://127.0.0.1:3040/; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } }


* [SSH 安全性和配置最佳实践](http://dlj.bz/4Iwq)

补充:

这个方案也不错[https://ngrok.com/](https://ngrok.com/)


Comments