DocumentRoot directive must be in virtual host configuration file. Example:
<VirtualHost *:80> ServerAdmin [EMAIL PROTECTED] ServerName foo.com ServerAlias www.foo.com bar.com www.bar.com DocumentRoot /absolute_path_to/public ... </VirtualHost> Regards Xdmx Xdmx escribió: > 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" > > ############# > > -- Rafael Garcia Ortega --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Deploying Rails" group. To post to this group, send email to rubyonrails-deployment@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---
begin:vcard fn;quoted-printable:Rafael Garc=C3=ADa Ortega n;quoted-printable:Garc=C3=ADa Ortega;Rafael org:ASPgems S.L. email;internet:[EMAIL PROTECTED] tel;work:692686533 x-mozilla-html:FALSE url:http://www.aspgems.com version:2.1 end:vcard