ERR_TOO_MANY_REDIRECTS: Nginx, Daphne, Django ChannelsHelp needed setting up nginx to serve static filesNginx...

Why do neural networks need so many training examples to perform?

Can the Count of Monte Cristo's calculation of poison dosage be explained?

Is the theory of the category of topological spaces computable?

Eww, those bytes are gross

Can I retract my name from an already published manuscript?

It took me a lot of time to make this, pls like. (YouTube Comments #1)

Avoiding morning and evening handshakes

Do any poskim exempt 13-20-year-olds from Mussaf?

Called into a meeting and told we are being made redundant (laid off) and "not to share outside". Can I tell my partner?

Where is this triangular-shaped space station from?

How would an AI self awareness kill switch work?

Is 45 min enough time to catch my next flight in Copenhagen?

Meaning of すきっとした

F1 visa even for a three-week course?

"Sheng" as a male given name

Can a person refuse a presidential pardon?

What is Crew Dragon approaching in this picture?

Obtaining a matrix of complex values from associations giving the real and imaginary parts of each element?

How to approximate rolls for potions of healing using only d6's?

If all harmonics are generated by plucking, how does a guitar string produce a pure frequency sound?

How can I improve my fireworks photography?

How to avoid being sexist when trying to employ someone to function in a very sexist environment?

What is the purpose of easy combat scenarios that don't need resource expenditure?

Should I choose Itemized or Standard deduction?



ERR_TOO_MANY_REDIRECTS: Nginx, Daphne, Django Channels


Help needed setting up nginx to serve static filesNginx has ssl module, but thinks it doesn'tsvn using nginx Commit failed: path not foundNginx proxy pass works for https but not httpnginx load balancer rewrite to listen portnginx proxy redirecting request to different proxyNginx subversion commit failureNginx/Apache: set HSTS only if X-Forwarded-Proto is httpsnginx rewrite throw 404 with last and breakConfigure NGINX : How to handle 500 Error on upstream itself, While Nginx handle other 5xx errors













0















I still don't know why my webpage is showing



myapp.com redirected you too many times.


Nginx is only used as a proxy for my django channels application, which is running with daphne.



Nginx is running with no errors.



myapp systemd[1]: Starting A high performance web server and a reverse proxy server...


Daphne is running on 127.0.0.1:8001



My nginx config file



server {
listen 80;
server_name myapp.com www.myapp.com;
server_tokens off;
return 301 https://$server_name$request_uri;
}

server {
listen 443 ssl; # managed by Certbot
server_name myapp.com www.myapp.com;

ssl_certificate /etc/letsencrypt/live/myapp.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/myapp.com/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

root /home/me/myapp/src/myapp;

location = /favicon.ico { access_log off; log_not_found off; }

location /static/ {
root /home/me/myapp/src/myapp;
}

location /media/ {
root /home/me/myapp/src/myapp;
}

location / {
try_files $uri/ @python_django;
}

location @python_django {
proxy_pass http://127.0.0.1:8001;
proxy_pass_request_headers on;
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_redirect off;
}
}









share|improve this question







New contributor




Trilla is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    I still don't know why my webpage is showing



    myapp.com redirected you too many times.


    Nginx is only used as a proxy for my django channels application, which is running with daphne.



    Nginx is running with no errors.



    myapp systemd[1]: Starting A high performance web server and a reverse proxy server...


    Daphne is running on 127.0.0.1:8001



    My nginx config file



    server {
    listen 80;
    server_name myapp.com www.myapp.com;
    server_tokens off;
    return 301 https://$server_name$request_uri;
    }

    server {
    listen 443 ssl; # managed by Certbot
    server_name myapp.com www.myapp.com;

    ssl_certificate /etc/letsencrypt/live/myapp.com/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/myapp.com/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

    root /home/me/myapp/src/myapp;

    location = /favicon.ico { access_log off; log_not_found off; }

    location /static/ {
    root /home/me/myapp/src/myapp;
    }

    location /media/ {
    root /home/me/myapp/src/myapp;
    }

    location / {
    try_files $uri/ @python_django;
    }

    location @python_django {
    proxy_pass http://127.0.0.1:8001;
    proxy_pass_request_headers on;
    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_redirect off;
    }
    }









    share|improve this question







    New contributor




    Trilla is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      I still don't know why my webpage is showing



      myapp.com redirected you too many times.


      Nginx is only used as a proxy for my django channels application, which is running with daphne.



      Nginx is running with no errors.



      myapp systemd[1]: Starting A high performance web server and a reverse proxy server...


      Daphne is running on 127.0.0.1:8001



      My nginx config file



      server {
      listen 80;
      server_name myapp.com www.myapp.com;
      server_tokens off;
      return 301 https://$server_name$request_uri;
      }

      server {
      listen 443 ssl; # managed by Certbot
      server_name myapp.com www.myapp.com;

      ssl_certificate /etc/letsencrypt/live/myapp.com/fullchain.pem; # managed by Certbot
      ssl_certificate_key /etc/letsencrypt/live/myapp.com/privkey.pem; # managed by Certbot
      include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
      ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

      root /home/me/myapp/src/myapp;

      location = /favicon.ico { access_log off; log_not_found off; }

      location /static/ {
      root /home/me/myapp/src/myapp;
      }

      location /media/ {
      root /home/me/myapp/src/myapp;
      }

      location / {
      try_files $uri/ @python_django;
      }

      location @python_django {
      proxy_pass http://127.0.0.1:8001;
      proxy_pass_request_headers on;
      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_redirect off;
      }
      }









      share|improve this question







      New contributor




      Trilla is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I still don't know why my webpage is showing



      myapp.com redirected you too many times.


      Nginx is only used as a proxy for my django channels application, which is running with daphne.



      Nginx is running with no errors.



      myapp systemd[1]: Starting A high performance web server and a reverse proxy server...


      Daphne is running on 127.0.0.1:8001



      My nginx config file



      server {
      listen 80;
      server_name myapp.com www.myapp.com;
      server_tokens off;
      return 301 https://$server_name$request_uri;
      }

      server {
      listen 443 ssl; # managed by Certbot
      server_name myapp.com www.myapp.com;

      ssl_certificate /etc/letsencrypt/live/myapp.com/fullchain.pem; # managed by Certbot
      ssl_certificate_key /etc/letsencrypt/live/myapp.com/privkey.pem; # managed by Certbot
      include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
      ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

      root /home/me/myapp/src/myapp;

      location = /favicon.ico { access_log off; log_not_found off; }

      location /static/ {
      root /home/me/myapp/src/myapp;
      }

      location /media/ {
      root /home/me/myapp/src/myapp;
      }

      location / {
      try_files $uri/ @python_django;
      }

      location @python_django {
      proxy_pass http://127.0.0.1:8001;
      proxy_pass_request_headers on;
      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_redirect off;
      }
      }






      nginx django digital-ocean






      share|improve this question







      New contributor




      Trilla is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Trilla is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Trilla is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 12 hours ago









      TrillaTrilla

      11




      11




      New contributor




      Trilla is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Trilla is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Trilla is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "2"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          Trilla is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f956523%2ferr-too-many-redirects-nginx-daphne-django-channels%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Trilla is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Trilla is a new contributor. Be nice, and check out our Code of Conduct.













          Trilla is a new contributor. Be nice, and check out our Code of Conduct.












          Trilla is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Server Fault!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f956523%2ferr-too-many-redirects-nginx-daphne-django-channels%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          117736 Шеррод Примітки | Див. також | Посилання | Навігаційне...

          As a Security Precaution, the user account has been locked The Next CEO of Stack OverflowMS...

          Маріан Котлеба Зміст Життєпис | Політичні погляди |...