Ruby on rails 使用apache和passenger在同一dns上部署多个rails应用程序
我已经在ec2服务器中安装了apache+passenger。 当我尝试Ruby on rails 使用apache和passenger在同一dns上部署多个rails应用程序,ruby-on-rails,amazon-ec2,apache2,uri,passenger,Ruby On Rails,Amazon Ec2,Apache2,Uri,Passenger,我已经在ec2服务器中安装了apache+passenger。 当我尝试 http://ec2-***-***-***-**.ap-*-1.compute.amazonaws.com/ 输出: It works! This is the default web page for this server. The web server software is running but no content has been added, yet. 其次是
http://ec2-***-***-***-**.ap-*-1.compute.amazonaws.com/
输出:
It works!
This is the default web page for this server.
The web server software is running but no content has been added, yet.
其次是
ec2-***-***-***-**.ap-*-1.compute.amazonaws.com is mapped to a dns, say myserver.com
现在我想在这里运行多个rails应用程序,就像我有app1、app2和app3 rails应用程序一样
myserver.com/app1、myserver.com/app2和myserver.com/app3应加载各自的应用程序。
我在下面查阅了一些教程
Deploying Rails with Sub URI: or creation of symlinks
但却无法得到一个清晰的认识。有人能给我指一些教程或给我一些基本的理解吗
乘客版是3.0.18您应该看看 它使用RailsBaseURI 示例配置
<VirtualHost *:80>
ServerName www.phusion.nl
DocumentRoot /websites/phusion
<Directory /websites/phusion>
Allow from all
</Directory>
RailsBaseURI /rails #
<Directory /websites/phusion/rails> #
Options -MultiViews #
</Directory> #
</VirtualHost>
服务器名www.phusion.nl
DocumentRoot/websites/phusion
通融
RailsBaseURI/rails#
#
选项-多视图
#
这有帮助吗?