Articles of phusion passenger

apache2和SSL的问题不能加载文件CSS和JS

我在Ruby on Rails 3.2.8中有一个应用程序,我在端口3037上使用passenger-Nginx作为Web服务器,使用ProxyPass和ProxyPassReverse与Apache2和SSL连接。 我的问题是,加载铬或Firefox时,CSS和JavaScript文件不加载。 我有一个来自Register.com的SSL证书,我用这种方式在VirtualHost中configuration了它: 这是在80端口的VirtualHost中 ServerName mydomain.com ServerAlias www.mydomain.com DocumentRoot /home/mydomain/ PassengerEnabled off ProxyPass / http://0.0.0.0:3037/ ProxyPassReverse / http://0.0.0.0:3037/ RewriteEngine on ReWriteCond %{SERVER_PORT} !^443$ RewriteCond %{REQUEST_URI} !(\.js|\.css)$ [NC] RewriteRule \.(gif|jpg|jpeg|jpe|png|css|js)$ – [S=1] RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L] 这是在我的文件从SSL端口443: <Proxy *> Allow from localhost </Proxy> ServerName mydomain.com ServerAlias www.mydomain.com DocumentRoot /home/mydomain/ ErrorLog /var/www/logs/www.mydomain.com/ssl_error_log.log CustomLog /var/www/logs/www.mydomain.com/ssl_access_log.log […]

我怎样才能让Apache使用默认的乘客PHP?

这是我的设置:我有一个Apache服务器运行一些虚拟主机,他们每个人都使用PHP。 我现在有一个我想安装到其中一个站点的子目录的rails应用程序(一个子域将作为一个后退足够)。 从我读到目前为止,只要我安装libapache2-mod-passenger默认情况下所有的网站将使用乘客,而不是PHP。 有没有办法解决这个问题,禁止在每个站点configuration文件中设置PassengerEnabled off指令?

Nginx安装W /乘客,但没有命令行

我使用以下命令在Ubuntu 12.10上安装了Passenger和Nginx:passenger-install-nginx-module(在www.modrails.com/documentation/Users指导Nginx.html的指导下)。 当我遇到安装我的SSL证书的问题时,我发现像“Nginx -V”这样的命令行工具产生了以下输出:“程序'nginx'可以在以下软件包中find…” 更新:我已经成功地使用以下链接中的说明正确configurationSSL: https : //library.linode.com/web-servers/nginx/configuration/ssl 我仍然需要知道如何从命令行运行Nginx命令。 使用我安装到/etc/init.d/nginx的脚本启动和停止它没有问题。 nginx安装目录是/ opt / nginx。

Nginx的1.5.1支持spdy,passenger和php

我不明白,如果spdy已经与nginx 1.5.1打包在一起,或者我有重新编译它。 我用下面的命令安装了nginx:passenger-install-nginx-module这个安装了nginx 1.4.1,但没有将spdy模块编译进去。 php-fpm只能在nginx上安装,但是乘客和spdy必须被编译成二进制文件。 我希望任何人都可以指出我如何编译nginx的客运和spdy支持的正确方向。

如何在Dreamhost上安装moinmoin-2

如何在Dreamhost上安装moinmoin-2? 我把这个放在这里,所以我可以在将来find它。 也许这对其他人也有用。 我发现它有挑战性,因为: 它需要python2.7,而dreamhost有2.4,2.5,2.6 它需要烧瓶,我从来没有用过 它需要virtualenv

旅客apache和nginx模块不能编译在Ubuntu的12.04LTS

我正在从根帐户做这一切。 我遵循这个指南: https : //www.digitalocean.com/community/articles/how-to-install-rails-apache-and-mysql-on-ubuntu-with-passenger 我已经尝试挂载额外的交换空间,因为服务器只有512MB的RAM(半共享,一半“我的”)。 我已经安装了乘客安装指南所依赖的软件。 当我运行passenger-install-apache2-module和rvmsudo passenger-install-nginx-module时,在检查过程中我得到了所有的绿色,然后发生了最后的事情,在它经常停顿很长时间,然后踢我离开ssh会话: mkdir -p buildout/common/libpassenger_common/ApplicationPool2 g++ -Iext -Iext/common -Iext/libev -Wno-ambiguous-member-template -D_REENTRANT -I/usr/local/include -DHAS_TR1_UNORDERED_MAP -DHAVE_ACCEPT4 -DHAS_ALLOCA_H -DHAS_SFENCE -DHAS_LFENCE -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -ggdb -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -fcommon -feliminate-unused-debug-symbols -feliminate-unused-debug-types -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -Wno-attributes -o buildout/common/libpassenger_common/ApplicationPool2/Implementation.o -c ext/common/ApplicationPool2/Implementation.cpp Write failed: Broken pipe 我拉头发,但没有多大帮助。 似乎没有任何使用我的谷歌福的这个问题的痕迹,所以我猜我在早期的FUBAR'd服务器。 但我真的只是试图安装rails,所以没有很多其他的东西。 如果有问题,我在RVM上有ruby。 有任何想法吗? 编辑:ps […]

nginx passenger_root不接受有效的乘客gem位置

我试图将passenger_root和passenger_ruby添加到我的nginx.conf文件中,但是当我尝试并重新启动NGINX时,我收到消息: Starting nginx: nginx: [alert] Unable to start the Phusion Passenger watchdog because its executable (/usr/lib/phusion-passenger/agents/PassengerWatchdog) does not exist. This probably means that your Phusion Passenger installation is broken or incomplete, or that your 'passenger_root' directive is set to the wrong value. Please reinstall Phusion Passenger or fix your 'passenger_root' directive, whichever is applicable. (-1: […]

所有Passenger进程突然挂起 – 回溯指示读取POST数据?

我一直有我的nginx / Passenger服务器的问题,其中请求似乎卡住,任何后续请求不完成,队列达到其最大值,该网站开始投放503s。 我必须重新启动nginx才能重新开始。 当问题发生时,乘客状态就是这样说的: Version : 4.0.37 Date : 2014-05-29 18:02:57 +0000 Instance: 18354 ———– General information ———– Max pool size : 4 Processes : 4 Requests in top-level queue : 0 ———– Application groups ———– /home/www/mysite#default: App root: /home/www/mysite Requests in queue: 100 * PID: 19495 Sessions: 1 Processed: 158 Uptime: 9m 23s […]

在vhost error.log中loggingPassenger中的错误

我使用nginx运行Phusion Passenger 4.0.40。 服务器用于托pipe多个网站,每个网站都有自己的error.log文件。 但是,如果应用程序在启动过程中崩溃,则不error.log错误消息写入网站的error.log ,而是写入全局error.log 。 由于全局error.log不能被网站访问,所以很难debugging这个问题。 有没有办法将console.log()从全局error.log启动错误redirect到网站的error.log ? 这里是nginxconfiguration的相关部分: error_log logs/error.log; http { passenger_friendly_error_pages off; } server { passenger_enabled on; error_log /var/www/subdomain/log/error.log; } 任何帮助表示赞赏。 谢谢

运行Passenger的Apache服务器无法显示Rails应用程序

我有一个项目被从github拉到我的/ home分区,并按照惯例做了/ var分区的符号链接。 它看起来如何: / home / vagrant / github / whois-dreyfus – >回购实际项目 / var / www / whois-dreyfus – >符号链接我用于Apache 我有Apache 2.2.22和Passenger 4.0.56安装在一个stream浪者的箱子里,并运行在远处的服务器上。 问题是,当通过我的私人networking访问它时,整个资源库都显示而不是索引。 这意味着如果说我有192.100.93.88指向Apache的索引页面 , 192.100.93.88/whois-dreyfus另一方面显示回购而不是项目的索引页。 此外,我已经使用Webrick在本地机器上testing了这个项目,所以我相信这个问题是来自web服务器。 那么,我如何运行我的rails应用程序? 这个问题是类似的这个线程,但我找不到任何答案导致我的问题。 这是我的configuration文件: /etc/apache2/apache2.conf中 # Load the passenger module for Apache LoadModule passenger_module /opt/passenger/passenger-4.0.56/buildout/apache2$ <IfModule mod_passenger.c> PassengerRoot /opt/passenger/passenger-4.0.56 PassengerDefaultRuby /home/vagrant/.rvm/gems/ruby-2.2.0/wrappers/ruby </IfModule> 在/ etc / apache2的/启用的站点- […]