This webpage has a redirect loop rails 3 -


i have problem logging admin part of site of spree. set subdomain www.bwscatalog.bestwatchsource.com , works fine, when try login admin side, got error:

this webpage has redirect loop

www.bwscatalog.bestwatchsource.com/admin hosted on a2 shared hosting. (rails 3, passenger)

spreestand::application.routes.draw   root :to => 'products#index'    resources :products    match '/locale/set' => 'locale#set'    resources :tax_categories    resources :states, :only => :index    # non-restful checkout stuff   match '/checkout/update/:state' => 'checkout#update', :as => :update_checkout   match '/checkout/:state' => 'checkout#edit', :as => :checkout_state   match '/checkout' => 'checkout#edit', :state => 'address', :as => :checkout    # non-restful admin checkout stuff   match '/admin/orders/:order_number/checkout' => 'admin/checkout#update', :method => :post, :as => :admin_orders_checkout   match '/admin/orders/:order_number/checkout/(:state)' => 'admin/checkout#edit', :method => :get, :as => :admin_orders_checkout    resources :orders     post :populate, :on => :collection      resources :line_items     resources :creditcards     resources :creditcard_payments      resources :shipments       member         :shipping_method       end     end    end   match '/cart', :to => 'orders#edit', :via => :get, :as => :cart   match '/cart', :to => 'orders#update', :via => :put, :as => :update_cart   match '/cart/empty', :to => 'orders#empty', :via => :put, :as => :empty_cart    resources :shipments     member       :shipping_method       put :shipping_method     end   end    #   # search routes   match 's/*product_group_query' => 'products#index', :as => :simple_search   match '/pg/:product_group_name' => 'products#index', :as => :pg_search   match '/t/*id/s/*product_group_query' => 'taxons#show', :as => :taxons_search   match 't/*id/pg/:product_group_name' => 'taxons#show', :as => :taxons_pg_search    #   # route globbing pretty nested taxon , product paths   match '/t/*id' => 'taxons#show', :as => :nested_taxons   #   #   #moved old taxons route after nested_taxons nested_taxons default route   #   #this route maybe removed in near future (no longer used core)   #   map.resources :taxons   #    #from auth   devise_for :user,              :controllers => { :sessions => 'user_sessions',                                :registrations => 'user_registrations',                                :passwords => "user_passwords" },              :skip => [:unlocks, :omniauth_callbacks],              :path_names => { :sign_out => 'logout'}   resources :users, :only => [:edit, :update]    devise_scope :user     "/login" => "user_sessions#new", :as => :login     "/signup" => "user_registrations#new", :as => :signup   end     match '/checkout/registration' => 'checkout#registration', :via => :get, :as => :checkout_registration   match '/checkout/registration' => 'checkout#update_registration', :via => :put, :as => :update_checkout_registration    match '/orders/:id/token/:token' => 'orders#show', :via => :get, :as => :token_order    resource :session     member       :nav_bar     end   end   resource :account, :controller => "users"     #from dash     match '/admin' => 'admin/overview#index', :as => :admin   match '/admin/overview/get_report_data' => 'admin/overview#get_report_data'     #from promo   namespace :admin     resources :promotions       resources :promotion_rules     end   end     namespace :admin     resources :zones     resources :users     resources :countries       resources :states     end     resources :states     resources :tax_categories     resources :configurations, :only => :index     resources :products       resources :product_properties       resources :images         collection           post :update_positions         end       end       member         :clone       end       resources :variants         collection           post :update_positions         end       end       resources :option_types         member           :select           :remove         end         collection           :available           :selected         end       end       resources :taxons         member           :select           delete :remove         end         collection           post :available           post :batch_select            :selected         end       end     end     resources :option_types       collection         post :update_positions       end     end      resources :properties       collection         :filtered       end     end      resources :prototypes       member         :select       end        collection         :available       end     end      resource :inventory_settings     resources :google_analytics      resources :orders       member         put :fire         :fire         post :resend         :history         :user       end        resources :adjustments       resources :line_items       resources :shipments         member           put :fire         end       end       resources :return_authorizations         member           put :fire         end       end       resources :payments         member           put :fire         end       end     end      resource :general_settings      resources :taxonomies       member         :get_children       end        resources :taxons     end      resources :reports, :only => [:index, :show]       collection         :sales_total       end     end      resources :shipments     resources :shipping_methods     resources :shipping_categories     resources :tax_rates     resource  :tax_settings     resources :calculators     resources :product_groups       resources :product_scopes     end       resources :trackers     resources :payment_methods     resources :mail_methods   end    #from api   namespace :admin     resources :users       member         put :generate_api_key         put :clear_api_key       end     end   end    namespace :api     resources :shipments, :except => [:new,:edit]       put :event, :on => :member       resources :inventory_units, :except => [:new,:edit]         put :event, :on => :member       end     end     resources :orders, :except => [:new,:edit]       put :event, :on => :member       resources :shipments, :except => [:new,:edit]       resources :line_items, :except => [:new,:edit]       resources :inventory_units, :except => [:new,:edit]         put :event, :on => :member       end     end     resources :inventory_units, :except => [:new,:edit]       put :event, :on => :member     end     resources :products, :except => [:new,:edit]     resources :countries, :except => [:new,:edit]       resources :states, :except => [:new,:edit]     end     resources :states, :except => [:new,:edit]   end    match '/admin' => 'admin/orders#index', :as => :admin    match '/content/cvv' => 'content#cvv'    #rails3 todo - should disable default   #match '/:controller(/:action(/:id(.:format)))'    # catchall route "static" content (except paths explicit extensions: .html, .ico, etc)   #if spree::config.instance && spree::config.get(:use_content_controller)     match '/*path' => 'content#show'   #end end 

looking @ server's response headers, it's being redirected https http , back. within application controller. i'm not familiar spree, can enable https entire site?


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -