202401 « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 » 202403 thinとapacheが同じサーバで稼動しているとする。 thinでport3101、3102を使ってアプリを立ち上げて、 http://localhost:3101/myapp/controller/action http://localhost:3102/myapp/controller/action みたいに(見かけ)サブディレクトリ/myapp/配下で動かしたい場合、 config/environments/production.rb config/environments/development.rb に ActionController::Base.relative_url_root =