Phusion 乘客偏好面板多个应用程序
我在 Snow Leopard 机器上运行一个名为“examplemachine”的应用程序,该应用程序由 Phusion Passenger Preference Pane 部署。当我从同一网络上的另一台计算机访问“examplemachine.local”时,他们可以毫无问题地使用此应用程序。
当我想添加另一个应用程序时,困难就来了。例如,只需将该应用程序添加到窗格中并为其指定“newapp.local”地址,即可从实际创建该应用程序的计算机上访问该应用程序,但同一网络上的其他计算机无法看到该应用程序。
我对 Apache、vhosts 等不是很熟悉。它只适用于一两个小项目,如果我能得到一些关于设置它的建议,那就太好了。
已在互联网上搜索解决方案,但我发现除了乘客首选项窗格中单个本地计算机上的多个应用程序之外,没有任何其他内容可以处理。
I have a single application running on a Snow Leopard machine called "examplemachine" which is deployed by Phusion Passenger Preference Pane. When I visit "examplemachine.local" from another machine on the same network, they can use this application with no problem.
The difficulty comes when I want to add another application. Simply adding that application to the pane and giving it an address of "newapp.local," for example, makes it so that the application is accessible from the machine it's actually created on, but no other machines on the same network can see it.
I'm not super familiar with Apache, vhosts, etc. It's just for a small project or two, and if I could get some advice on setting this up it'd be great.
Have scoured the internet for a solution, but nothing I've found deals with anything other than multiple apps on a single local machine in Passenger Preference Pane.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,如果您想从本地网络上的另一台计算机访问 Rails 应用程序,则必须在该计算机的 hosts 文件中设置一个条目。例如,假设托管 Rails 应用程序的计算机位于 10.1.1.2,您可以添加到其他计算机的主机文件:
在 Windows 上,我认为该文件通常位于:
和 mac
希望这会有所帮助。
As far as I'm aware, if you want to access rails apps from another machine on a local network you will have to setup an entry in that machines hosts file. e.g. Given the machine that is hosting the rails apps is at 10.1.1.2 you could add to the other machines hosts file:
on windows this file is I think usually found at:
and mac
Hope this helps.