Articles of phusion passenger

问题得到Squirrelmail和乘客在Apache上工作

我试图设置一个位置,我想在同一个Apache服务器上运行一个squirrelmail和Passenger,它有一个指向squirrelmail的url以及一切由乘客处理的东西。 到目前为止,松鼠邮件和乘客都可以自行运行,但当乘客运行时,它会处理所有的 URL。 到目前为止,我已经尝试使用别名和redirect指向一个web邮件/ URL到squirrelmails目录,但是不起作用。 这是我的httpd.conf文件: <VirtualHost *:80> ServerName not.my.real.server.name DocumentRoot /var/www/sinatra/public # Does not work: #Redirect webmail/ /usr/share/squirrelmail/ #<Directory /usr/share/squirrelmail> # Require all granted #</Directory> <Directory /var/www/sinatra/public> Order allow,deny Allow from all </Directory> </VirtualHost> apache2.conf为乘客添加了这些文件,除此之外,我还没有从标准Ubuntu Server 12.04安装apache做任何更改: # passenger config LoadModule passenger_module /home/kenneth/.rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.15/ext/apache2/mod_passenger.so PassengerRoot /home/kenneth/.rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.15 PassengerRuby /home/kenneth/.rvm/wrappers/ruby-1.9.3-p194/ruby passanger config.ru文件: require './index' run Sinatra::Application

乘客企业版 – “大众部署”澄清

我们正在考虑为乘客企业购买许可证,我正在寻找关于乘客企业版“大规模部署”function的更好解释。 假设你有Rails 3应用程序 – 我的博客 news_site online_resume 这些全部都被放到服务器上的一个目录中,我们可以指示Passenger查看该目录并提供这些应用程序。 所以我的问题是:nginx怎么来这里玩? 该虚拟服务器的nginxconfiguration是否完全被忽略? 我们经常需要升级nginxconfiguration,例如重写,以及一些乘客configuration(例如min_instances )。

安装了Redmine,现在phpmyadmin的结果是“无法启动Ruby on Rails应用程序”

我最近在Ubuntu 12.04 + Apache服务器上安装了Redmine,并且工作正常。 但是,当我去https://phpmyadmin.example.com时,我的phpmyadmin网站给了我一个奇怪的错误: 这里是phpmyadmin的VirtualHostconfiguration位: <VirtualHost *:443> ServerName phpmyadmin.example.com DocumentRoot /usr/share/phpmyadmin SSLEngine on SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key <Directory /usr/share/phpmyadmin> Options FollowSymLinks DirectoryIndex index.php <IfModule mod_php5.c> AddType application/x-httpd-php .php php_flag magic_quotes_gpc Off php_flag track_vars On php_flag register_globals Off php_admin_flag allow_url_fopen Off php_value include_path . php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/ </IfModule> </Directory> </VirtualHost> 我认为这可能与我最近安装的Redmine(Rails应用程序中的ruby)有关,但是我一直无法find阻止phpmyadmin像普通网站一样加载的任何东西。 我觉得奇怪的是,我的默认apache“它的作品!” […]

乘客nginx安装不带有服务来重新启动nginx?

你如何重新启动一个Ubuntu的乘客nginx安装nginx? 我安装了乘客,然后自动安装了nginx。 但是没有命令可以在任何地方重新启动nginx。 我试过服务重新启动nginx和/etc/init.d/nginx重启,没有运气。

Capistrano壳牌环境错误

我试图让卡皮斯特拉诺与rvm和乘客独立合作。 我曾经有过这样的工作,然后卡皮斯特拉诺突然开始抱怨错过了捆绑命令。 当我删除require 'bundler/capistrano' ,它不再抱怨丢失的包(并且不再尝试捆绑),但是会失败,如下所示: … * 2013-07-25 14:29:16 executing `deploy:restart' * executing "if [[ -f /home/staging/capistrano/shared/tmp/pids/passenger.80.pid ]];\\\n then\\\n cd /home/staging/capistrano/current && rvmsudo passenger stop -p 80;\\\n fi" servers: ["ccdev.dyndns.org"] [ccdev.dyndns.org] executing command ** [out :: ccdev.dyndns.org] sh: 1: ** [out :: ccdev.dyndns.org] [[: not found ** [out :: ccdev.dyndns.org] command finished in 13ms * […]

乘客权限被拒绝访问.htaccess

我刚刚完成迁移我的Redmine安装,并用webricktesting后,一切正常,该网站与http://localhost:3000很好地工作 接下来,我安装并configuration了mod_passenger,添加了一个单独的虚拟主机,基本上只复制了以前服务器的configuration。 由于应用程序的绝对path并没有改变,我认为它会马上工作,但这是不正确的,显然乘客没有访问正确的目录。 以下是该虚拟主机的错误日志中出现的内容: Permission denied: /srv/redmine/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable 这里是configuration文件: 虚拟主机 <VirtualHost *:80> ServerName redmine DocumentRoot /srv/redmine/public ErrorLog /var/log/apache2/redmine_error.log RailsEnv production PassengerRoot /srv/redmine/public <Directory /srv/redmine/public> Options Indexes FollowSymLinks AllowOverride all Order allow,deny allow from all RailsBaseURI / PassengerResolveSymlinksInDocumentRoot on </Directory> </VirtualHost> 乘客configuration文件 <IfModule mod_passenger.c> PassengerRoot /usr PassengerRuby […]

无法用Passenger + RailsconfigurationApache

我只是初学者,并尝试了解如何configuration我的RubyOnRails应用程序的apach web服务器。 我有Linux,为乘客安装了apache2,passenger和apache2-module。 安装时,我得到了这样的文字 LoadModule passenger_module /home/rubys/.rvm/…/ext/apache2/mod_passenger.so PassengerRoot /home/rubys/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8 PassengerRuby /home/rubys/.rvm/wrappers/ruby-1.9.2-p290/ruby 我需要添加到我的Apacheconfiguration文件,所以,我使用 $ apachectl -V | grep HTTPD_ROOT $ apachectl -V | grep SERVER_CONFIG_FILE 文件,我需要的是在这里 /etc/apache2/apache2.conf 我的导轨应用程序在这里 /home/alexkd/WebDev/rails/depot 另外我有像这样的文本在/etc/apache2/ports.conf文件 NameVirtualHost *:80 Listen80 我必须复制到我的apache2.conf ? 并在那里我要补充一点: <VirtualHost *:80> ServerName depot.yourhost.com DocumentRoot /home/alexkd/WebDev/rails/depot <Directory /home/alexkd/WebDev/rails/depot> AllowOverride all Options -MultiViews </Directory> </VirtualHost>

Apache网站文件没有域名

我似乎无法在谷歌上find这个。 我试图搭build一个使用EC2和Elastic IP的快速testing网站,但是我陷入了如何编辑Apache网站文件,以便我可以查看该网站。 它被部署在/ var / www / ServerTest目录中,我想用Elastic IP来访问它(让我们来说我想做56.34.123.12/index.html)。 我怎么能设置? 以下是我迄今为止在网上find的内容: <VirtualHost *:80> ServerName www.example.com DocumentRoot /webapps/mycook/ServerTest <Directory /webapps/mycook/ServerTest> Allow from all Options -MultiViews </Directory> </VirtualHost> 但是,我没有像“www.example.com”这样的域名来链接它。 谢谢!

Phusion乘客缓慢渲染JSON响应

我有一个Rails 4应用程序,返回大量的呈现为JSON(23Klogging/ 2.8MB文档)的数据。 在我的笔记本电脑上使用WEBrick服务器testing这个调用,请求在573ms完成。 Completed 200 OK in 573ms (Views: 0.1ms | ActiveRecord: 51.2ms) 如果我使用Phusion Passenger切换到Apache,则完全相同的请求需要3025ms才能完成。 Completed 200 OK in 3025ms (Views: 0.1ms | ActiveRecord: 53.9ms) 我不明白为什么乘客会这么慢。 有什么想法吗? 我的开发环境正在运行OS X 10.7.5。 我安装了Apache 2.2.24和Passenger 4.0.23。

网站不断要求下载ruby文件?

我是Ruby开发新手。 我试图安装phusion乘客,并将其与Ubuntu 14.04上的Apache整合。 我完成了此页面的步骤2.3: https : //www.phusionpassenger.com/documentation/Users%20guide%20Apache.html 但是,当我去http://192.168.0.105/suburl/home.rb这样的url,浏览器下载rb文件,而不是作为一个网页。 我迷失在所有的指示。 任何人都可以build议我下一步应该做什么,让我的home.rb只是简单地运行,只是puts "hello world" ? 这是我的/ etc / apache / sites-enabled / 000-default <VirtualHost *:80> # The ServerName directive sets the request scheme, hostname and port that # the server uses to identify itself. This is used when creating # redirection URLs. In the context of virtual […]