I hadn’t used my MacBook for a while to run some local Rails apps, but now they are all showing (apache) 404s. I believe I had updated to Lion and the newest Pref Pane since they last worked. I’m not sure where to start looking to debug. Any ideas?
I also did the following:
$ rvm use @global
$ gem update passenger
$ passenger-install-apache2-module
My /etc/apache2/httpd.conf contains the following at the end:
LoadModule passenger_module /Users/robs/.rvm/gems/ruby-1.9.2-p180@global/gems/passenger-3.0.11/ext/apache2/mod_passenger.so
PassengerRoot /Users/robs/.rvm/gems/ruby-1.9.2-p180@global/gems/passenger-3.0.11
PassengerRuby /Users/robs/.rvm/wrappers/ruby-1.9.2-p180@global/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. They work fine if I run $ rails s and go to http://localhost:3000.
1 Answer