2009-04-01 11 views
2

私のレール生産ログにこのエラーが見られます。 mongrelクラスタのApacheでレールを実行しています。 RoutingError( "/:// 0"と{:method =>:get}を一致させるルートはありません):Mongrel Railsのエラー:RoutingError({:method =>:get}で "/:// 0"と一致するルートがありません):

エラーの原因となっているURLは何か分かりません。

編集:HERESに私のroutes.rbをファイル

ActionController ::ルーティング:: Routes.drawん|地図|

map.signout '/account/signout', :controller => 'sessions', :action => 'destroy' 
map.signin '/account/signin', :controller => 'sessions', :action => 'new' 
map.signup '/account/signup', :controller => 'users', :action => 'new' 

map.change_password '/account/change_password', :controller => 'users', :action => 'change_password' 
map.forgot_password '/account/forgot_password', :controller => 'users', :action => 'forgot_password' 
map.reset_password '/account/reset_password/:id', :controller => 'users', :action => 'reset_password' 

map.preferences '/preferences', :controller => 'preferences', :action => 'index' 
map.dashboard '/dashboard', :controller => 'dashboard', :action => 'index' 
map.account '/account', :controller => 'account', :action => 'index' 
map.affiliate '/affiliates', :controller => 'affiliates', :action => 'index' 

map.essentials '/preferences/essentials', :controller => 'preferences/essentials', :action => 'index' 
map.contacts '/preferences/contacts', :controller => 'preferences/contacts', :action => 'index' 
map.travel '/preferences/travel', :controller => 'preferences/travel', :action => 'index' 
map.online '/preferences/online', :controller => 'preferences/online', :action => 'index' 
map.reminders '/preferences/reminders', :controller => 'preferences/reminders', :action => 'index' 
map.miscellaneous '/preferences/miscellaneous', :controller => 'preferences/miscellaneous', :action => 'index' 

map.home '/home', :controller => 'main', :action => 'home' 
map.about '/about', :controller => 'main', :action => 'about' 
map.gift '/gift', :controller => 'gift', :action => 'index' 
map.plans '/plans', :controller => 'main', :action => 'plans' 
map.faqs '/faqs', :controller => 'main', :action => 'faqs' 
map.contact '/contact', :controller => 'main', :action => 'contact' 

map.tos '/terms_of_service', :controller => 'main', :action => 'terms_of_service' 
map.privacy '/privacy', :controller => 'main', :action => 'privacy' 

map.root :controller => 'main' 

map.connect ':controller/:action/:id' 
map.connect ':controller/:action/:id.:format' 

エンドレール・エラー・ログから完全なエラーメッセージ:apacheのバーチャルホストファイルから

ActionController::RoutingError (No route matches "/account/://0" with {:method=>:get}): 
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/routing/recognition_optimisation.rb:66:in `recognize_path' 
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/routing/route_set.rb:386:in `recognize' 
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:182:in `handle_request' 
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:110:in `dispatch_unlocked' 
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:123:in `dispatch' 
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:122:in `synchronize' 
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:122:in `dispatch' 
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:132:in `dispatch_cgi' 
/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:39:in `dispatch' 
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:76:in `process' 
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in `synchronize' 
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:74:in `process' 
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:159:in `process_client' 
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:158:in `each' 
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:158:in `process_client' 
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in `run' 
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in `initialize' 
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in `new' 
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:285:in `run' 
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:268:in `initialize' 
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:268:in `new' 
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel.rb:268:in `run' 
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:282:in `run' 
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:281:in `each' 
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:281:in `run' 
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:128:in `run' 
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/command.rb:212:in `run' 
/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281 
/usr/local/bin/mongrel_rails:19:in `load' 
/usr/local/bin/mongrel_rails:19 

抜粋:

RewriteCond %{SERVER_PORT} !^443$ 
    RewriteRule ^/(.*)$ https://%{SERVER_NAME}/$1 [R,L] 

    # Redirect all non-static requests to Mongrel 
    RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f 
    RewriteRule ^/(.*)$ balancer://mongrel1%{REQUEST_URI} [P,QSA,L] 

    <Proxy balancer://mongrel1> 
    BalancerMember http://127.0.0.1:3000 
    BalancerMember http://127.0.0.1:3001 
    </Proxy> 

    ProxyPass/balancer://mongrel1/ 
    ProxyPassReverse/balancer://mongrel1/ 
    ProxyPreserveHost on 

感謝を!

+0

このエラーがどのように発生しているかなどの詳細情報が必要です。それは良いスタートだ。 –

+1

/account /:// 0の実際の要求が行われているという事実は、人々には分かりません。 Apacheのログファイルを確認し、それらの要求に対してリファラーがあるかどうかを確認します。 – kch

答えて

0

config/routes.rbファイル内に問題があるようです。

routes.rbファイルの内容とメッセージにロードしようとしているURLを追加できる場合は、さらに手助けすることができます。

0

map.connect ':コントローラ/:アクション/:ID' map.connect ':コントローラ/:アクション/:ID:フォーマット'

交換これらのステートメント下記の順序。

map.connect ':コントローラ/:アクション/:ID:フォーマット' map.connect ':コントローラ/:アクション/:ID'

ない安らかなルートが存在しないので、routes.rbを内に設けられました問題はメソッドの定義、またはメンバーメソッドの呼び出しではない可能性があります。

形式はURLソースを上書きしています。

1

Uh - 誰かが"/account/://0"というURLをリクエストしているように見えますか?なぜでないとがルーティングエラーを生成するのですか?あなたが定義したどのルートにも当たるとは思わないでしょう。

1

これは単純にハッキングの試みでしょうか?

関連する問題