完整的铁路和乘客新手。我在 Linux Mint 上运行乘客 3.0.19。我的应用程序与 WEBrick(rails 服务器)和独立乘客一起运行良好。当我尝试使用 mod_passenger 时,我得到“致命:用户“me_user”的对等身份验证失败(PG::Error)”:
#Phusion Passenger config info
LoadModule passenger_module /var/lib/gems/1.9.1/gems/passenger-3.0.19/ext/apache2/mod_passenger.so
PassengerRoot /var/lib/gems/1.9.1/gems/passenger-3.0.19
PassengerRuby /usr/bin/ruby1.9.1
#Suppose you have a Rails application in /somewhere. Add a virtual host to your
#Apache configuration file and set its DocumentRoot to /somewhere/public:
<VirtualHost *:80>
ServerName localhost
# !!! Be sure to point DocumentRoot to 'public'!
DocumentRoot /var/www/myapp/public
<Directory /var/www/myapp/public>
# This relaxes Apache security settings.
AllowOverride all
# MultiViews must be turned off.
Options -MultiViews
</Directory>
</VirtualHost>
我应该注意:db 帐户通过命令行工作,并在 database.yml 中配置。我已经看到 ppl 表明这是 pg_hba.conf 的问题......但如果这是我的问题,那么应用程序也无法独立运行......但它确实如此。提前致谢。