2011-12-16 82 views
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,它们工作正常。

回答

1
  1. 重启Apache,并重新检查:)
  2. 确保有没有对在县窗格/ off开关一些高手也就是关闭
  3. 杀PREF窗格和你的Apache配置的这些部分,只是设置了手动虚拟主机as described here。重新检查
  4. 切换到pow
+0

与其他步骤没有运气,但战俘看起来真的很棒。谢谢。后续问题:如何使用Pow在生产模式下运行它? – robertwbradford 2011-12-17 00:27:35

相关问题