Hello, I''m trying to get rails to work with apache 1.3.31 and FastCGI. I used all information I could find, but I must have missed something. Here are the relevant sections of my httpd.conf: LoadModule fastcgi_module libexec/apache/mod_fastcgi.so AddModule mod_fastcgi.c <IfModule mod_fastcgi.c> FastCgiIpcDir /tmp/fcgi_ipc/ AddHandler fastcgi-script .fcgi </IfModule> <VirtualHost *> DocumentRoot "/home/jo/rails/Note/public/" ServerName rails ErrorLog "/home/jo/rails/Note/log/apache.log <Directory /home/jo/rails/Note/public/> Options ExecCGI FollowSymLinks AllowOverride all Allow from all Order allow,deny </Directory> </VirtualHost> If access http://rails/ I get the standard rails welcome page -> ok. accessing http://rails/note/list results in: [error] (2)No such file or directory: exec of /home/jo/rails/Note/public/dispatch.cgi failed [error] Premature end of script headers: /home/jo/rails/Note/public/dispatch.cgi [error] File does not exist: /home/jo/rails/Note/public/note/list/ Sure it works with webrick. I''d be glad if someone could help me or point me to the informations I need to get it up and running. thanks, -- jochen
Hi, Have you altered the relevant sections in the .htaccess file residing in your public directory? Cheers Jochen wrote:> Hello, > > I''m trying to get rails to work with apache 1.3.31 and FastCGI. I used all > information I could find, but I must have missed something. > > Here are the relevant sections of my httpd.conf: > > > LoadModule fastcgi_module libexec/apache/mod_fastcgi.so > AddModule mod_fastcgi.c > > <IfModule mod_fastcgi.c> > FastCgiIpcDir /tmp/fcgi_ipc/ > AddHandler fastcgi-script .fcgi > </IfModule> > > <VirtualHost *> > DocumentRoot "/home/jo/rails/Note/public/" > ServerName rails > ErrorLog "/home/jo/rails/Note/log/apache.log > <Directory /home/jo/rails/Note/public/> > Options ExecCGI FollowSymLinks > AllowOverride all > Allow from all > Order allow,deny > </Directory> > </VirtualHost> > > > If access http://rails/ I get the standard rails welcome page -> ok. > accessing http://rails/note/list results in: > > [error] (2)No such file or directory: exec of > /home/jo/rails/Note/public/dispatch.cgi failed > [error] Premature end of script headers: /home/jo/rails/Note/public/dispatch.cgi > [error] File does not exist: /home/jo/rails/Note/public/note/list/ > > Sure it works with webrick. > > I''d be glad if someone could help me or point me to the informations I need to > get it up and running. > > > thanks, > -- jochen
jaikoo <jonathan@...> writes:> > Hi, > Have you altered the relevant sections in the .htaccess file residing in > your public directory? > > CheersNo I didn''t. Now it works. Thank you very much for your help! regards -- jochen