« Previous Next »

Thread: How to setup Ruby on Rails on IIS7.5?

Last post 07-15-2009 9:08 PM by anilr. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 06-07-2009, 10:17 AM

    How to setup Ruby on Rails on IIS7.5?

    how can i setup Ruby on Rails from IIS7.5? 

    i say http://blogs.iis.net/ruslany/archive/2008/08/07/ruby-on-rails-in-iis-7-0-with-url-rewriter.aspx but some files specified do not exists anymore ... 

    http://rubyforiis.sosukodo.org/ 

    for example ... 

  • 06-07-2009, 12:56 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 6:13 PM
    • Redmond, WA
    • Posts 2,343

    Re: How to setup Ruby on Rails on IIS7.5?

    What step is not working for you?  Which files do not exist anymore?

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 06-07-2009, 10:00 PM In reply to

    Re: How to setup Ruby on Rails on IIS7.5?

     http://rubyforiis.sosukodo.org/ dont exist anymore its the ruby on rails iis extension

    UPDATE

    nvm i dl-ed it from http://ruslany.net/2008/08/ruby-on-rails-in-iis-70-with-url-rewriter/

    but now, i need to setup URL rewrite what do i put in my web.config? i keep getting either 500 errors when i try the web.config from some site ... i forgot where ...

    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
      <system.webserver>
        <rewrite>
          <rules>
            <!--
            <rule name="Rewrite app_offline.html if file exists" stopProcessing="true">
              <match url="^.*$" ignoreCase="false" />
              <conditions>
                <add input="{DOCUMENT_ROOT}/app_offline.html" matchType="IsFile" ignoreCase="false" />
                <add input="{SCRIPT_FILENAME}" pattern="app_offline.html" ignoreCase="false" negate="true" />
                <add input="{SCRIPT_FILENAME}" pattern="^(.+).(png|gif|jpg|css|js)$" ignoreCase="false" negate="true" />
              </conditions>
              <action type="Rewrite" url="/app_offline.html" />
     
            -->
            <rule name="Rewrite index to check for static">
              <match ignorecase="false" url="^$" />
              <action url="index.html" appendquerystring="true" type="Rewrite" />
            </rule>
            <rule name="Rewrite to check for Rails cached page">
              <match ignorecase="false" url="^([^.]+)$" />
              <action url="{R:1}.html" appendquerystring="true" type="Rewrite" />
            </rule>
            <rule name="Redirect all non-static requests to dispatch.fcgi" stopprocessing="true">
              <match ignorecase="false" url="^(.*)$" />
              <conditions logicalgrouping="MatchAll">
                <add ignorecase="false" pattern="" negate="true" matchtype="IsFile" input="{REQUEST_FILENAME}" />
              </conditions>
              <action url="dispatch.fcgi" appendquerystring="true" type="Rewrite" />
            </rule>
          </rules>
        </rewrite>
      </system.webserver>
    </configuration>

    ERROR: The configuration section 'system.webserver' cannot be read because it is missing a section declaration 

  • 07-15-2009, 9:08 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 6:13 PM
    • Redmond, WA
    • Posts 2,343

    Re: How to setup Ruby on Rails on IIS7.5?

    You can find the ruby on rails module here.  Can paste the complete text of the error you are getting?

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
Page 1 of 1 (4 items)
Microsoft Communities