question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

using https in config.js causes "to many redirects"

See original GitHub issue

when im using this, there is no https in rss (the links still have “http” prefixes)

production: {
        url: 'http://test.de',
        urlSSL: 'https://test.de',

when im chaning the “url” to https, this causes an fatals error “to many redirects”

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

76reactions
bbixlercommented, Apr 17, 2016

Chris is correct. Here is a working Nginx configuration:

location / {
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $http_host;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_pass http://127.0.0.1:2368;
}
9reactions
chrishawescommented, Mar 19, 2016

Late to the party, but this is the first hit for ‘ghost too many redirects’.

You need to set an X-Forwarded-Proto header so Ghost knows it’s being hit via SSL despite being behind a reverse proxy.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix The ERR_TOO_MANY_REDIRECTS Error - Kinsta
The ERR_TOO_MANY_REDIRECTS error is pretty much what it sounds like: something is causing too many redirects, sending your website into an infinite ...
Read more >
Too Many Redirects: What This Error Means & How to Fix It
How To Fix Too Many Redirects · 1. Clear cookies on the redirecting website. · 2. Clear your browser cache. · 3. Ensure...
Read more >
Too Many Redirects: What This Error Means And How to Fix It
In this guide to fixing the "Too many redirects" error, you will learn the most common reasons behind redirect loops and how to...
Read more >
How to Fix the Too Many Redirects Error Message - Help Center
The most common issue is that http redirects to https and https then redirects back to http, causing the loop. There are several...
Read more >
Too Many Redirects? ERR_TOO_MANY_REDIRECTS and ...
“ERR_TOO_MANY_REDIRECTS” is an error message that appears when a website creates a redirect loop. One redirect leads to another and creates ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found