IIS7 running the Ruby CGI environment on the configuration

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.