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