LoginSignup
4
3

More than 5 years have passed since last update.

IIS+ARRでRailsを動かす

Posted at

WindowsServer上でRailsアプリをIIS経由で実行させる。
ARR(Application Request Routing)でURL書き換えてやる。

使ったバージョン
WindowsServer 2012
IIS 8.5
ARR 3.0

-- 1,Railsを起動する。
今回は3000番で起動

  • 2,ARR(Application Request Routing)をインストールする
    Web PIからインストールする

  • 3,書き換えルール追加
    IISマネージャからURL書き換えを選択
    受信規則の追加 :空の規則
    要求されたURL : パターンに一致する
    使用 : ワイルドカード
    パターン : prefix/*
    アクション : 書き換え
    URLの書き換え : http://localhost:3000/{R:1}

これで、 http://ドメイン/prefix/controller/action
http://localhost:3000/controller/action
で実行される。

assetsはIISの適当なフォルダに置いておく

4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3