nginx - uwsgi - python bad gateway 502 when using port 80 The 2019 Stack Overflow Developer Survey Results Are InNginx returning 502 Bad GatewayNginx 502 Bad GatewayProxy (nginx) shows a Bad gateway errornginx proxy - 502 bad gateway502 Bad GatewayArch Nginx Uwsgi no app loaded502 error Nginx with php5-fpmNginx dockerization port forwardNginx connection refused error 111, bad gateway502 bad gateway on nginx

How much of the clove should I use when using big garlic heads?

Match Roman Numerals

Is an up-to-date browser secure on an out-of-date OS?

Falsification in Math vs Science

If I score a critical hit on an 18 or higher, what are my chances of getting a critical hit if I roll 3d20?

The phrase "to the numbers born"?

For what reasons would an animal species NOT cross a *horizontal* land bridge?

How to type a long/em dash `—`

Does adding complexity mean a more secure cipher?

Short story: child made less intelligent and less attractive

Can there be female White Walkers?

What is the meaning of Triage in Cybersec world?

writing variables above the numbers in tikz picture

Why doesn't shell automatically fix "useless use of cat"?

Correct punctuation for showing a character's confusion

Is it ethical to upload a automatically generated paper to a non peer-reviewed site as part of a larger research?

Why “相同意思的词” is called “同义词” instead of "同意词"?

Why does the nucleus not repel itself?

Ubuntu Server install with full GUI

What is preventing me from simply constructing a hash that's lower than the current target?

Is it okay to consider publishing in my first year of PhD?

Kerning for subscripts of sigma?

Getting crown tickets for Statue of Liberty

Did any laptop computers have a built-in 5 1/4 inch floppy drive?



nginx - uwsgi - python bad gateway 502 when using port 80



The 2019 Stack Overflow Developer Survey Results Are InNginx returning 502 Bad GatewayNginx 502 Bad GatewayProxy (nginx) shows a Bad gateway errornginx proxy - 502 bad gateway502 Bad GatewayArch Nginx Uwsgi no app loaded502 error Nginx with php5-fpmNginx dockerization port forwardNginx connection refused error 111, bad gateway502 bad gateway on nginx



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I'm setting up an nginx - python uwsgi server, I have encountered an an issue where i can get it to work when a port (8000) is supplied but when I use port 80, I just get a bad gateway (502) error



If i go the IP address of the machine, I get the nginx default homepage.



my ini file for my testapp is

[uwsgi]
module = testapp

http-socket = :8000

master = true
processes = 5

socket = /tmp/testapp.sock
chmod-socket = 660
vaccum = true

die-on-term = true


The testapp file from sites-available 

server
listen 80;
server_name test.linuxtest.com;

location /
include uwsgi_params;
uwsgi_pass unix:/tmp/testapp.sock;






the testapp.py file that should be called.



def application(environ, start_response):
start_response('200 OK', [('Content-Type', 'text/html')])
return ["<h1 style='color:blue'>Hello There!</h1>"]





my netstat output for netstat -ltnp | grep 80 is



tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 864/nginx: master p
tcp 0 0 0.0.0.0:8000 0.0.0.0:* LISTEN 1836/uwsgi

tcp6 0 0 :::80 :::* LISTEN 864/nginx: master p









share|improve this question









New contributor




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


























    0















    I'm setting up an nginx - python uwsgi server, I have encountered an an issue where i can get it to work when a port (8000) is supplied but when I use port 80, I just get a bad gateway (502) error



    If i go the IP address of the machine, I get the nginx default homepage.



    my ini file for my testapp is

    [uwsgi]
    module = testapp

    http-socket = :8000

    master = true
    processes = 5

    socket = /tmp/testapp.sock
    chmod-socket = 660
    vaccum = true

    die-on-term = true


    The testapp file from sites-available 

    server
    listen 80;
    server_name test.linuxtest.com;

    location /
    include uwsgi_params;
    uwsgi_pass unix:/tmp/testapp.sock;






    the testapp.py file that should be called.



    def application(environ, start_response):
    start_response('200 OK', [('Content-Type', 'text/html')])
    return ["<h1 style='color:blue'>Hello There!</h1>"]





    my netstat output for netstat -ltnp | grep 80 is



    tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 864/nginx: master p
    tcp 0 0 0.0.0.0:8000 0.0.0.0:* LISTEN 1836/uwsgi

    tcp6 0 0 :::80 :::* LISTEN 864/nginx: master p









    share|improve this question









    New contributor




    Andy Pelton 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'm setting up an nginx - python uwsgi server, I have encountered an an issue where i can get it to work when a port (8000) is supplied but when I use port 80, I just get a bad gateway (502) error



      If i go the IP address of the machine, I get the nginx default homepage.



      my ini file for my testapp is

      [uwsgi]
      module = testapp

      http-socket = :8000

      master = true
      processes = 5

      socket = /tmp/testapp.sock
      chmod-socket = 660
      vaccum = true

      die-on-term = true


      The testapp file from sites-available 

      server
      listen 80;
      server_name test.linuxtest.com;

      location /
      include uwsgi_params;
      uwsgi_pass unix:/tmp/testapp.sock;






      the testapp.py file that should be called.



      def application(environ, start_response):
      start_response('200 OK', [('Content-Type', 'text/html')])
      return ["<h1 style='color:blue'>Hello There!</h1>"]





      my netstat output for netstat -ltnp | grep 80 is



      tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 864/nginx: master p
      tcp 0 0 0.0.0.0:8000 0.0.0.0:* LISTEN 1836/uwsgi

      tcp6 0 0 :::80 :::* LISTEN 864/nginx: master p









      share|improve this question









      New contributor




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












      I'm setting up an nginx - python uwsgi server, I have encountered an an issue where i can get it to work when a port (8000) is supplied but when I use port 80, I just get a bad gateway (502) error



      If i go the IP address of the machine, I get the nginx default homepage.



      my ini file for my testapp is

      [uwsgi]
      module = testapp

      http-socket = :8000

      master = true
      processes = 5

      socket = /tmp/testapp.sock
      chmod-socket = 660
      vaccum = true

      die-on-term = true


      The testapp file from sites-available 

      server
      listen 80;
      server_name test.linuxtest.com;

      location /
      include uwsgi_params;
      uwsgi_pass unix:/tmp/testapp.sock;






      the testapp.py file that should be called.



      def application(environ, start_response):
      start_response('200 OK', [('Content-Type', 'text/html')])
      return ["<h1 style='color:blue'>Hello There!</h1>"]





      my netstat output for netstat -ltnp | grep 80 is



      tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 864/nginx: master p
      tcp 0 0 0.0.0.0:8000 0.0.0.0:* LISTEN 1836/uwsgi

      tcp6 0 0 :::80 :::* LISTEN 864/nginx: master p






      linux ubuntu nginx uwsgi






      share|improve this question









      New contributor




      Andy Pelton 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




      Andy Pelton 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








      edited Apr 8 at 12:51









      Rui F Ribeiro

      42k1483142




      42k1483142






      New contributor




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









      asked Apr 8 at 12:11









      Andy PeltonAndy Pelton

      1




      1




      New contributor




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





      New contributor





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






      Andy Pelton 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: "106"
          ;
          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: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          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
          );



          );






          Andy Pelton 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%2funix.stackexchange.com%2fquestions%2f511221%2fnginx-uwsgi-python-bad-gateway-502-when-using-port-80%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








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









          draft saved

          draft discarded


















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












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











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














          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • 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%2funix.stackexchange.com%2fquestions%2f511221%2fnginx-uwsgi-python-bad-gateway-502-when-using-port-80%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

          getting Checkpoint VPN SSL Network Extender working in the command lineHow to connect to CheckPoint VPN on Ubuntu 18.04LTS?Will the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayVPN SSL Network Extender in FirefoxLinux Checkpoint SNX tool configuration issuesCheck Point - Connect under Linux - snx + OTPSNX VPN Ububuntu 18.XXUsing Checkpoint VPN SSL Network Extender CLI with certificateVPN with network manager (nm-applet) is not workingWill the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayImport VPN config files to NetworkManager from command lineTrouble connecting to VPN using network-manager, while command line worksStart a VPN connection with PPTP protocol on command linestarting a docker service daemon breaks the vpn networkCan't connect to vpn with Network-managerVPN SSL Network Extender in FirefoxUsing Checkpoint VPN SSL Network Extender CLI with certificate

          Cannot Extend partition with GParted The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsCan't increase partition size with GParted?GParted doesn't recognize the unallocated space after my current partitionWhat is the best way to add unallocated space located before to Ubuntu 12.04 partition with GParted live?I can't figure out how to extend my Arch home partition into free spaceGparted Linux Mint 18.1 issueTrying to extend but swap partition is showing as Unknown in Gparted, shows proper from fdiskRearrange partitions in gparted to extend a partitionUnable to extend partition even though unallocated space is next to it using GPartedAllocate free space to root partitiongparted: how to merge unallocated space with a partition

          Marilyn Monroe Ny fiainany manokana | Jereo koa | Meny fitetezanafanitarana azy.