# Fcgid woes

**URL:** <https://www.ruby-forum.com/t/fcgid-woes/86816>\
**Category:** Rails\
**Created:** [March 24, 2006, 4:21pm UTC](https://www.ruby-forum.com/t/fcgid-woes/86816 "2006-03-24T16:21:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tachekent](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/7993a0/32.png) [@tachekent](https://www.ruby-forum.com/u/tachekent)\
**Post date:** [March 24, 2006, 4:21pm UTC](https://www.ruby-forum.com/t/fcgid-woes/86816/1 "2006-03-24T16:21:41Z")

</div>

hi there,  
I’m running rails on apache2 with mod\_fcgid which works, but I’m having  
trouble with environments adn separate dev & prodution vhosts. I have  
DefaultInitEnv set in the VirtualHost directive for each (as production  
| development), which works fine after a server restart for whichever  
vhost I hit first, but thereafter the RAILS\_ENV seems to be locked into  
one dispatch.fcgi which then handles requests for both vhosts. So if I  
hit my dev site first, the production site then serves content from the  
development site instead. Is this right?

Reports of fcgid say it is more stable and less prone to zombies (at  
least with apache), but documentation is sparse to say the least! Does  
anyone know a workaround for my problem?

dorian

–  
I do things for love or money
