简体   繁体   中英

Too many redirects

I am working on a project and am trying to display a page in a browser using https server ---- https://moneytree.space/catalogs/traders So far, I get the following:

在此处输入图片说明

If I just enter https://moneytree.space , the index.html from public directory is displayed. In my config/routes file, the root points to "catalogs/traders".

I need help with this. Here is my /etc/nginx/sites-enabled/default file:

Thank you.

It's impossible to say based on the amount of data you provided, but...

My hunch is that you have an exception which redirects to the "500 oops!" page that generates an exeption that redirects to the "500 oops!" page that generates the exception that redirects to....

ending with a "too many redirects" error :)

Check out your error handling code and make sure everything is traced where you catch exceptions in around_filter blocks and such

Perhaps you're redirecting to https for every request but not checking if it's already https?

$ curl -I http://moneytree.space/catalogs/traders
HTTP/1.1 301 Moved Permanently
Server: nginx/1.4.6 (Ubuntu)
Date: Fri, 09 Oct 2015 17:41:08 GMT
Content-Type: text/html
Content-Length: 193
Connection: keep-alive
Location: https://moneytree.space/catalogs/traders

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