简体   繁体   中英

Rails, Helicon Zoo, & IIS Authentication redirect loop

I've setup a rails site on a server running Windows Server 2008 + IIS 7.0. When navigating to the site the browser gets caught in a redirect loop causes by this code

def authorize 
  if not signed_in? 
    previous_url = request.fullpath 
    redirect_to signin_path, :notice => "Please sign in to access this page" 
  end
end

I've started it from the console ( rails s -e production ) and had no issues. I've also set it up on my development machine (Windows 7 + IIS 7.5) and not had issues. At this point I'm not sure where to start poking around.

Does your server give you an error log? That may be a good place to start. (For example on linux if I issue this command in terminal: rails server -e dev2 --port 3010 it will spit out all errors and a lot of other things, like sql queries, to the terminal window).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM