Apache2 fcgi setup

T

Tony Targonski

Could somebody help me out with FastCGI setup under Apache? I'm trying
to make my Rails application to run at at least a moderate speed.

Right now I'm getting empty header/timeout errors with it.

My system is
Win2k SP4
Apache 2.0.52 (win32)
Mod_fastcgi 2.4.2

If someone could point me to a configuration of
dispatcher/.htaccess/httpd.conf that works, it would be great.

Attempts to get mod_ruby working resulted in Apache crashing at MySQL
access lines (though the pages would render correctly after Apache would
restart). I'd welcome mod_ruby alternative if I can figure out what's
going on as well.

Thank you,
--Tony
 
E

evans.jon

Hi Tony,

Tony said:
Could somebody help me out with FastCGI setup under Apache? I'm trying
to make my Rails application to run at at least a moderate speed.

Right now I'm getting empty header/timeout errors with it.

I was trying to do this earlier in the week (on Linux) and I also got
timeouts. I fixed it by copying the contents of .htaccess into the
<Location > section of my vhost, and removing that file from the
filesystem. Putting the directives in the config file will also make
it a lot quicker.

The file for my vhost looks like this:

<VirtualHost *>
ServerName www.example.com

DocumentRoot /opt/sites/example/rails/public

ErrorLog /opt/sites/example/rails/log/example.apache.log

<Directory /opt/sites/example/rails/public/>
AllowOverride none
Include conf/vhosts/sites/rails.fragment
Order allow,deny
Allow from all
</Directory>

</VirtualHost>


and rails.fragment is exactly the same as the default rails .htaccess
file, but set up for fcgi rather than cgi.


Jon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,757
Messages
2,569,543
Members
45,026
Latest member
camilin05

Latest Threads

Top