Apache 2.0.x on Microsoft Windows

This section contains notes and hints specific to Apache 2.0.x installs of ruby-web on Microsoft Windows systems. We also have instructions and notes for Apache 1.3.x users on a separate page.

Note

You should read the manual installation steps first!

You are highly encouraged to take a look at the Apache Documentation to get a basic understanding of the Apache 2.0.x Server. Also consider to read the Windows specific notes for Apache 2.0.x before reading on here.

Warning

Apache 2.0.x is designed to run on Windows NT 4.0, Windows 2000 or Windows XP. At this time, support for Windows 9x is incomplete. Apache 2.0.x is not expected to work on those platforms at this time.

Download the most recent version of Apache 2.0.x and a fitting ruby-web version. Follow the Manual Installation Steps and come back to go on with the integration of ruby-web and Apache.

Note

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.

Installing as a CGI binary

You need to insert these three lines to your Apache httpd.conf configuration file to set up the CGI binary:

Example 4.2. ruby-web and Apache 2.0 as CGI


ScriptAlias /ruby/ "c:/ruby/bin"
AddType application/x-httpd-ruby .rb
Action application/x-httpd-ruby "/ruby/ruby-web.exe"