简体   繁体   English

Ruby上的安装服务器

[英]Setup server for ruby on rails

working under linux server Centos remotly in local network, my rails server working there too. 在Linux服务器Centos下在局域网中正常工作,我的rails服务器也在本地网络中工作。 How can I enable remote web access? 如何启用远程Web访问? And if so how can I enable only couple of ip addresses for web access? 如果是的话,如何仅启用几个IP地址进行Web访问?

if its only rails production server setup then you can try with this: 如果仅安装Rails生产服务器,则可以尝试以下操作:

http://www.leonardteo.com/2012/11/install-ruby-on-rails-on-ubuntu-server/ http://www.leonardteo.com/2012/11/install-ruby-on-rails-on-ubuntu-server/

it uses https://github.com/ballistiq/ruby-passenger-nginx-installer and they are maintaining the installer. 它使用https://github.com/ballistiq/ruby-passenger-nginx-installer ,他们正在维护安装程序。 I found its very helpful. 我发现它非常有帮助。 it works like no-pain 就像没有痛苦一样

You should check on which addresses the server applications binds. 您应该检查服务器应用程序绑定的地址。 If it has no external IP-Address then it wont be possible to access it directly from the internet. 如果没有外部IP地址,则将无法直接从Internet访问它。 Then it is possible to use port forwarding to forward your application over your router. 然后,可以使用端口转发在路由器上转发应用程序。 If you havent any access to the router you should ask the administrator of your network to forward it for you. 如果您无权访问路由器,则应要求网络管理员为您转发该路由器。

Another possibility is to plug a VLAN to a secound interface but you should think about security when you have a server that is connected to your NATed network and the internet directly! 另一种可能性是将VLAN插入到第二接口,但是当服务器直接连接到NATed网络和Internet时,您应该考虑安全性!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM