Questions tagged [flask]
144 questions
0
votes
2 answers
Django and Flask on same nginx server with gunicorn
I currently have a Djago app running on my main site when I visit mysite.com. However, I'd like mysite.com/flaskapp to run a separate Flask application. I'm able to set up two nginx site-enabled config files and run each app on a different port but,…

pnus
- 33
- 2
- 7
0
votes
1 answer
Unusual rise in disk reads without any significant activity
I have a Ubuntu VM instance on Azure. Without any anomaly in the code or activities carried out server freezes and when I try to run any command it pops up a -bash: fork: Cannot allocate memory.
I have a python server running along with a mongodb…

jam
- 1
0
votes
0 answers
Server specs for big ChatBot launch?
We're releasing a Messenger Platform ChatBot on a page with approx. 130k fans soon. At the moment we host on an EC2 instance with 2 Cores and 4GB RAM, which runs smoothly with our 30 users atm.
Our tech stack is:
NGINX
gunicorn (4…

trnc
- 688
- 1
- 12
- 31
0
votes
1 answer
Nginx is caching error pages for Django
We are using Nginx 1.10 to serve files in a production environment for a Django 1.7 backend and a Flask 0.10.1 frontend. Currently we have have the no-cache header set to prevent caching on error pages:
location /ohno/ {
# Prevent caching on…
0
votes
1 answer
Self-Signed SSL Certificate for Nginx in Ubuntu 16.04 And authorization (HTTP ERROR 403)
I have followed this link for self-signed ssl certificate for nginx.My nginx conf is like below:
server {
listen 80;
server_name myMachineIP;
return 302 https://$server_name$request_uri;
access_log /var/log/nginx/mysite.access.log;
error_log…

Jasmine
- 243
- 1
- 3
- 9
0
votes
1 answer
Basic NGINX, uWSGI configuration running locally only delivers 404
My Flask app runs through uWSGI, and I am using a TCP socket to talk to NGINX. The configuration is very basic:
application.conf
server {
listen 80 default_server;
location / {
uwsgi_pass 127.0.0.1:9000;
include…

llater
- 31
- 3
0
votes
1 answer
How to verify incoming requests go to gunicorn-flask via nginx
I'm running nginx, gunincorn (to start flask). When i kill nginx, the nginx test page disappears, but gunicorn/flask app continue to serve.
Is this expected?
How can i ensure gunicorn/nginx are working together?
I also checked the nginx access…

ivrin
- 103
- 3
0
votes
1 answer
Nginx With Dokku and Flask
The Big Picture
I have a Flask site which-- previously-- was running successfully on Ubuntu on Linode. I bootstrapped it with Yeoman, and as a result, I did not need to figure out the difference between nginx, wsgi/Werkzeug, and gunicorn.
However,…

user2605279
- 1
- 2
0
votes
1 answer
Showing index of / without www, works normal with www
I'm working with Python, Flask and Apache, and i'm stuck. when i try to visit mywebsite using www, it works fine. however, when i remove the www, the website is showing "index of /" with an empty list of files next. i've read all the possible…

buddha_buddha
- 3
- 2
0
votes
1 answer
python - How to deploy Flask+Gunicorn+Nginx+supervisor on a cloud server?
I've read a lot of instructions since yesterday about this issue but all of them have similar steps. However I followed step by step but still can't get everything Ok.
Actually I can make Flask+Gunicorn+supervisor working but Nginx is not working…

jinglei
- 101
- 3
0
votes
1 answer
Nginx fails to pass the traffic to the Flask application and uwsgi
I am trying to deploy a Flask and uwsgi application with Nginx, everything is working and I can get my application to work on my domain: test.example.com:8080.
The problem is I can't make it work under the default port 80, I get the following error…

Madno
- 203
- 4
- 16
0
votes
3 answers
Nginx and uWSGI Flask app Connection Refused
Trying to set up a Flask application with uWSGI and Nginx.
I keep getting a 502 Bad Gateway error (as far as I know this means uWSGI and Nginx can't communicate correctly)
This is the line that keeps showing up in my /var/log/nginx/error.log:…

Kyle Calica-St
- 103
- 1
- 6
0
votes
2 answers
Pages are not cached
I have a simple web app running behind nginx using flask+gunicorn and somewhere along the line a stale version of the page is being cached. My nginx config has add_header Cache-Control no-cache; and proxy_buffering off; in the location for the proxy…

thaweatherman
- 157
- 9
0
votes
0 answers
Setting up a sub-domain to point to a flask application on same digital ocean droplet (with uwsgi and nginx on Ubuntu 15.10)
I have a domain called abc.com which points to a static html page, in /var/www/abc.com/public_html.
I want to host a Flask application on same droplet (different port maybe?), which is accessible using a subdomain demo.abc.com.
I followed…

kampta
- 101
- 4
0
votes
1 answer
Configure basic python 3.5, flask, uwsgi, nginx app
Not sure where I am going wrong here, all I get is a 502 bad gateway. (server ip is 104.197.13.112)
The code for all the configuration files and basic app are in a github repo.
github repo
nginx seems to start correctly, uwsgi does not and I think…

Vincent
- 101
- 3