Rafael GarcĂa wrote:
> Hi, what said [development|production].log?(when show error 500)
>
Sorry for the late, i was trying something, anyway..
this is the apache error (nothing in production.log):
#############
[Sun Mar 09 11:46:58 2008] [alert] [client 81.208.x.x]
/home/dom1/public_html/domain.com/.htaccess: DocumentRoot not allowed
here
#############
this is caused by:
#############
DocumentRoot public/
AddHandler fastcgi-script .fcgi
AddHandler cgi-script .cgi
Options +FollowSymLinks +ExecCGI
RewriteEngine On
RewriteRule ^$ public/index.html [QSA]
RewriteRule ^([^.]+)$ public/$1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ public/dispatch.fcgi [QSA,L]
ErrorDocument 500 "<h2>Application error</h2>Rails application failed to
start properly"
#############
and:
#############
DocumentRoot public/
AddHandler fastcgi-script .fcgi
AddHandler cgi-script .cgi
Options +FollowSymLinks +ExecCGI
RewriteEngine On
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"
#############
with this htaccess everything works fine, but it leaves the public
referer in the url, and it hasn't to be there:
#############
AddHandler fastcgi-script .fcgi
AddHandler cgi-script .cgi
Options +FollowSymLinks +ExecCGI
RewriteEngine On
RewriteRule ^$ public/index.html [QSA]
RewriteRule ^([^.]+)$ public/$1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ public/dispatch.fcgi [QSA,L]
ErrorDocument 500 "<h2>Application error</h2>Rails application failed to
start properly"
#############
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Deploying Rails" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-deployment?hl=en
-~----------~----~----~----~------~----~------~--~---