This section contains notes and hints specific to Apache 1.3.x installs of ruby-web on Microsoft Windows systems. There are also instructions and notes for Apache 2 on a separate page.
Please read the manual installation steps first!
After changing the configuration file, remember to restart the server, for example, NET STOP APACHE followed by NET START APACHE, if you run Apache as a Windows Service, or use your regular shortcuts.
Remember that when adding
path values in the Apache configuration files on Windows, all backslashes
such as c:\directory\file.ext must be converted to
forward slashes, as c:/directory/file.ext.
If your ruby is installed in C:\ruby\ as described
in the Manual
Installation Steps section, you need to insert
these lines to your Apache configuration file to set
up the CGI binary:
Example 4.1. ruby-web and Apache 1.3.x as CGI
ScriptAlias /ruby/ "c:/ruby/bin"
AddType application/x-httpd-ruby .rb
Action application/x-httpd-rb "/ruby/ruby-web.exe"
Note that the second line in the list above can be found
in the actual versions of httpd.conf, but it is commented out. Remember
also to substitute the c:/ruby/ for your actual path to Ruby.