After much wrestling and whatnot I've finally managed to get RoR to work on my Windows-based server. I'm attempting to get a RoR app that a friend wrote to work but I've run into some problems. Right now, I can get it to fire using WEBrick, but I'd like to get it to work through Apache (from an XAMPP package) if possible. When I try to load it from Apache, it dumps the dispatch.fcgi file to the browser in plain text. I've tried to find a solution on various forums but the only thing that I've found is a suggestion to add the following to the httpd.conf file:
- Code: Select all
Listen 3000
LoadModule rewrite_module modules/mod_rewrite.so
#################################
# RUBY SETUP
#################################
<virtualHost *:3000>
ServerName rails
DocumentRoot "c:/xampp/htdocs/kcseneschal/public"
<Directory "c:/xampp/htdocs/kcseneschal">
Options ExecCGI FollowSymLinks
AllowOverride all
Allow from all
Order allow,deny
AddHandler cgi-script .cgi
AddHandler fastcgi-script .fcgi
</Directory>
</VirtualHost>
#################################
# RUBY SETUP
#################################
I've also tried adding that to httpd-vhosts.conf but I get the same result. Is there a solution to this or will I have to use another program to serve RoR apps?
Thanks in advance for any help,
-Quaid