On the IIS site, "Handler mappings" click "Add script Map ..."
Request Path: *.RB
Executable file: C:\Ruby22\bin\ruby.exe%s%s
Name: Ruby
Click OK if you are prompted with an error at this time:
If you add a script map handler mapping, the Isapimodule or cigmodule must be in the module list
Description The default installation of IIS7 is an original version, inside the function is not complete.
The process is simple, and applications such as open or close Windows features (which can be simplified to win+r run optionalfeatures), Internet Information Services--World Wide Web services, in Control Panel, programs and features Order development function, put the following all on the hook! Reboot, Success!
The main is to put CGI,ISAPI extension, ISAPI filter check on.
Create a new file test.rb under the Site directory, as follows:
# !/usr/bin/ruby 'CGI'='"
Access address: http://localhost/rcgi/test.rb, normal return page: This is a test
IIS7 running the Ruby CGI environment on the configuration