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;
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
New contributor
add a comment |
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
New contributor
add a comment |
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
New contributor
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
linux ubuntu nginx uwsgi
New contributor
New contributor
edited Apr 8 at 12:51
Rui F Ribeiro
42k1483142
42k1483142
New contributor
asked Apr 8 at 12:11
Andy PeltonAndy Pelton
1
1
New contributor
New contributor
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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