I'm using os x and having trouble setting up several rails sites on a test production machine. Only one site works and the others give me a "rails failed to start properly" error. For the life of me I can not figure this out. Here is what my httpd.conf and htaccess files look likePHP Code:
Alias /site1/ "/Library/WebServer/site1/public/"
Alias /site1 "/Library/WebServer/site1/public/"
Aliassite2 /site2/ "/Library/WebServer/site2/public/"
Alias /site2 "/Library/WebServer/site2/public/"
Alias /site3/ "/Library/WebServer/site3/public/"
Alias /site3 "/Library/WebServer/site3/public/"
<Directory /Library/WebServer/site1/public>
Options ExecCGI FollowSymLinks
AllowOverride all
Order allow,deny
Allow from All
</Directory>
<Directory /Library/WebServer/site3/public>
Options ExecCGI FollowSymLinks
AllowOverride all
Order allow,deny
Allow from All
</Directory>
<Directory /Library/WebServer/site2/public>
Options ExecCGI FollowSymLinks
AllowOverride all
Order allow,deny
Allow from All
</Directory>
<IfModule mod_fastcgi.c>
FastCgiIpcDir /tmp/fcgi_ipc/
AddHandler fastcgi-script .fcgi
</IfModule>
FastCgiServer /Library/WebServer/site3/public/dispatch.fcgi -idle-timeout 120 -initial-env RAILS_ENV=production -processes 2
FastCgiServer /Library/WebServer/site1/public/dispatch.fcgi -idle-timeout 120 -initial-env RAILS_ENV=production -processes 2
FastCgiServer /Library/WebServer/site2/public/dispatch.fcgi -idle-timeout 120 -initial-env RAILS_ENV=production -processes 2
My htaccess files all the same except for RewriteBase:
AddHandler fastcgi-script .fcgi
AddHandler cgi-script .cgi
Options +FollowSymLinks +ExecCGI
RewriteEngine On
RewriteBase /site1/
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
ErrorDocument 500 "<h2>Application error</h2>Rails application failed to start properly"




Bookmarks