Here are my entries in httpd.conf renaming the server name (domain
name), actual user and Rails application folder.
LoadModule passenger_module /Users/serveruser/.rvm/gems/ruby-1.9.2-
p290/gems/passenger-3.0.11/ext/apache2/mod_passenger.so
PassengerRoot /Users/serveruser/.rvm/gems/ruby-1.9.2-p290/gems/
passenger-3.0.11
PassengerRuby /Users/serveruser/.rvm/wrappers/ruby-1.9.2-p290/ruby
# Virtual hosts
Include /private/etc/apache2/extra/httpd-vhosts.conf
<VirtualHost *:80>
ServerName
www.mydomain.com
DocumentRoot /Users/serveruser/Sites/myapp/public # <-- be sure
to point to 'public'!
RailsEnv "development"
<Directory /Users/serveruser/Sites/myapp/public>
AllowOverride all # <-- relax Apache security
settings
Options -MultiViews # <-- MultiViews must be turned
off
Order allow,deny
Allow from all
</Directory>
CustomLog "/Users/serveruser/Sites/myapp/log/access_log" combined
ErrorLog "/Users/serveruser/Sites/myapp/log/error_log"
</VirtualHost>
Here are my entries in httpd-vhosts.conf renaming the server name
(domain name), actual user and Rails application folder.
<VirtualHost *:80>
ServerName localhost
DocumentRoot /Users/serveruser/Sites/
RewriteEngine On
DefaultType text/html
<Directory "/Users/server1/Sites">
DefaultType text/html
Options +ExecCGI FollowSymLinks Indexes
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
I initially did what was mentioned in the Railscasts video without
updating httpd-vhosts.conf. When I could not execute the Rails
application I ended up doing web searches and adding other things
hoping to get it to work but to no avail.
I am attempting to run this on a Mac Mini using Lion Server. I do not
have an entry in the Web service for domain
www.mydomain.com. The
domain is a GoDaddy one. I have it pointing to the IP address of our
server. I am running Rails 3.2.1. This application works when I run
using localhost:3000.
The other websites in the Web service work fine. Any help would be
appreciated. I could not find anything in the Passenger documentation
for this problem.