好的,我会尽量缩短它。目前我正在使用默认的 Apache 2 安装运行 OS X (10.8.4)。我使用自制软件安装了乘客。我完成了设置向导,并且 mod_rails 似乎正在工作,因为我[ 2013-09-03 01:33:21.3513 34289/0x7fff71bf9180 agents/Watchdog/Main.cpp:642 ]: All Phusion Passenger agents started!
在/var/log/apache2/error_log
文件中看到了这个日志语句。
当我在网络浏览器中导航到localhost时,我得到以下信息,但是该rails.png
文件未显示。
access_log
for Apache 2 如下所示,
该httpd.conf
文件,
# Added by Chris - 27AUG13
LoadModule passenger_module /Users/capin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/passenger-4.0.14/buildout/apache2/mod_passenger.so
PassengerRoot /Users/capin/.rbenv/versions/2.0.0-p247/lib/ruby/gems/2.0.0/gems/passenger-4.0.14
PassengerDefaultRuby /Users/capin/.rbenv/versions/2.0.0-p247/bin/ruby
<VirtualHost *:80>
ServerName lucky
# Be sure to point DocumentRoot to 'public'!
DocumentRoot /Library/WebServer/Documents/simple_cms/public
<Directory /Library/WebServer/Documents/simple_cms/public>
# This relaxes Apache security settings.
AllowOverride all
# MultiViews must be turned off.
Options -MultiViews
</Directory>
</VirtualHost>
因此,无论出于何种原因,rails.png 文件都没有加载:/