|
![]() |
Win32 SupportCurt Hibbs has done some great work getting Rails to work on Win32 with Apache1 and Apache2. He has even rebuilt the mod_scgi.so files for both web servers and tested the configuration. Hopefully his built .so files will work, but he’s told me that he’s fed his changes back to the SCGI developers for inclusion later. Getting The mod_scgi.so FilesYou can get Curt’s builds of the apache modules at the downloads directory as .zip files: Apache ConfigurationCurt also has these instructions for the Win32 configuration, which are pretty similar to the apache2 instructions. Changes to Apache’s httpd.confIn both cases I added this immediately after the the LoadModule of mod_rewrite (make sure mod_rewrite is uncommented):
For apache 1 only, add the following immediately after the AddModule of mod_rewrite:
Apache2 doesn’t use AddModule. Add this to connect to your Rails application:
You can also mount at a particular URL path like this:
But you have to modify your rails routes.rb (probably the same thing you have to do if you use Apache’s Alias directive… I haven’t yet done this so I can’t say for sure). More Advanced ConfigurationAgain, refer to the apache2 configuration documentation for more information on doing a more complex Apache2 configuration with virtual hosts. |