rails:2501
From: "Yosuke Suzuki" <yosuke.suzuki@g...>
Date: Sun, 23 Dec 2007 23:49:43 +0900
Subject: [rails:2501] Re: routes.rbの編集の仕方
のりお様
返信ありがとうございます。
そのように設定したらうまくいきました。
ちなみにmongrel + apache2 + mod_proxy
という構成で、
mongrel_rails start -d -p 3001 -e development -P log/mongrel-1.pid
--prefix /rails
のようにmongrelを起動し、
apache2側の/etc/apache2/mods-available/proxy.conf(環境はDebian etch)を
<IfModule mod_proxy.c>
#turning ProxyRequests on and allowing proxying from all may allow
#spammers to use your proxy to send email.
ProxyRequests Off
<Proxy *>
AddDefaultCharset off
Order deny,allow
Allow from all
#Allow from .example.com
</Proxy>
ProxyPass /rails http://localhost:3001/rails
ProxyPassReverse /rails http://localhost:3001/rails
ProxyPass /rails http://localhost:3002/rails
ProxyPassReverse /rails http://localhost:3002/rails
ProxyPass /rails http://localhost:3003/rails
ProxyPassReverse /rails http://localhost:3003/rails
# Enable/disable the handling of HTTP/1.1 "Via:" headers.
# ("Full" adds the server version; "Block" removes all
outgoing Via: headers)
# Set to one of: Off | On | Full | Block
ProxyVia On
</IfModule>
07/12/23 に のりお<toykyo@t...> さんは書きました:
> のりおです。
>
> 2.0ではネームスペースが設定できるようになりました。
> 下記の例はhogesがrestfulなコントローラの場合です。
>
> map.namespace(:rails) do |rails|
> rails.resources :hoges
> end
>
> これで、/rails/hoges でアクセスできるようになります。
>
> --
> ML: rails@r...
> 使い方: http://QuickML.com/
>
--
--------------------------
Yosuke Suzuki
yosuke.suzuki@g...
--
ML: rails@r...
使い方: http://QuickML.com/
2499 2007-12-23 08:16 [yosuke.suzuki@g... ] routes.rbの編集の仕方 2500 2007-12-23 10:15 ┗[toykyo@t... ] -> 2501 2007-12-23 15:49 ┗[yosuke.suzuki@g... ] 2502 2007-12-24 12:52 ┗[yosuke.suzuki@g... ]