【问题标题】:osx rvm passenger config?osx rvm乘客配置?
【发布时间】:2011-02-06 05:07:26
【问题描述】:

谁能帮我弄清楚为什么我的乘客设置不起作用?以下是我安装它的步骤。

  • cd /Users/username/sandbox/my_rails_app
  • gem 安装乘客 --pre
  • passenger-install-apache2-module
  • 更新了 apache 配置文件

/private/etc/apache2/httpd.conf

LoadModule passenger_module /Users/username/.rvm/gems/ruby-1.8.7-p302@my_rails_app/gems/passenger-3.0.0.pre4/ext/apache2/mod_passenger.so
PassengerRoot /Users/username/.rvm/gems/ruby-1.8.7-p302@my_rails_app/gems/passenger-3.0.0.pre4
PassengerRuby /Users/username/.rvm/wrappers/ruby-1.8.7-p302@my_rails_app/ruby

/private/etc/apache2/users/username.conf

<Directory "/Users/username/Sites/">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

<VirtualHost *:80>
   ServerName mule.local
   DocumentRoot /Users/username/sandbox/my_rails_app/public
   <Directory /Users/username/sandbox/my_rails_app/public>
      AllowOverride all              # <-- relax Apache security settings
      Options -MultiViews            # <-- MultiViews must be turned off
   </Directory>
</VirtualHost>
  • 重新启动 osx 网络服务器
  • 在浏览器中导航到 mule.local
  • 什么都没有发生请帮忙!

【问题讨论】:

    标签: apache macos passenger rvm


    【解决方案1】:

    我有点晚了,但如果你还没有发现,请查看Passenger Preference Pane。它会让你的生活更轻松。它处理 Apache 配置。

    【讨论】:

    • 迟到总比不到好!干杯!
    【解决方案2】:

    摆脱'#

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-04-09
      • 1970-01-01
      • 1970-01-01
      • 2015-06-27
      相关资源
      最近更新 更多