2
我没有用过我的MacBook一段时间来运行一些本地Rails应用程序,但现在它们都显示(apache)404s。我相信自从他们上次工作以来,我已更新到Lion和最新的Pref Pane。我不确定从哪里开始寻找调试。有任何想法吗?Phusion乘客:在我的所有应用程序上获得404
我也做了以下内容:
$ rvm use @global
$ gem update passenger
$ passenger-install-apache2-module
我/etc/apache2/httpd.conf在结尾处包含以下内容:
LoadModule passenger_module /Users/robs/.rvm/gems/[email protected]/gems/passenger-3.0.11/ext/apache2/mod_passenger.so
PassengerRoot /Users/robs/.rvm/gems/[email protected]/gems/passenger-3.0.11
PassengerRuby /Users/robs/.rvm/wrappers/[email protected]/ruby
# Added by the Passenger preference pane
# Make sure to include the Passenger configuration (the LoadModule,
# PassengerRoot, and PassengerRuby directives) before this section.
<IfModule passenger_module>
NameVirtualHost *:80
<VirtualHost *:80>
ServerName _default_
</VirtualHost>
Include /private/etc/apache2/passenger_pane_vhosts/*.conf
</IfModule>
PS。如果我运行$ rails s
并转至http://localhost:3000,它们工作正常。
与其他步骤没有运气,但战俘看起来真的很棒。谢谢。后续问题:如何使用Pow在生产模式下运行它? – robertwbradford 2011-12-17 00:27:35