Questions tagged [flask]
144 questions
1
vote
1 answer
How to set up Wordpress and Flask on the same server with Apache?
I installed WordPress on my server and it's working fine. Now I'm trying to set up another application made using Flask on the same server. This is what my .conf file looks now:
Require all…

Felipe Cortez
- 111
- 3
1
vote
0 answers
Issue deploying Flask Rest Api on Nginx
I'm trying to deploy my flask api rest on nginx (on a subdomain) without success. I've followed this example from Digital Ocean and everything was working properly but then I changed the tutorial example code to my mine and POST requests aren't…

NeoSennin
- 51
- 6
1
vote
0 answers
Gunicorn behind Nginx - high number of TIME_WAIT during load test
nginx version: nginx/1.9.3
gunicorn (version 19.7.1)
I have a small flask API running through gunicorn behind nginx. When I load test directly through gunicorn everything is working fine, however as soon as I point it to nginx, I get a very high…

nick_v1
- 365
- 2
- 3
- 11
1
vote
1 answer
Set up IIS to reverse proxy an internal server
I have a Linux server serving a Flask application with Gunicorn. I have a separate Windows server with IIS. Only the IIS server is accessible publicly. How can I set up IIS as a reverse proxy to my internal server?
PS: came from:…

user3313834
- 115
- 1
- 2
- 7
1
vote
0 answers
Serve Flask applications like PHP scripts
On most webserver configurations, .php files are automatically processed when a user accesses a php file, using php-fpm.
I'd like to do a similar thing for Flask apps on my nginx server, so that when a user accesses a .py file or a directory with an…

Luke Taylor
- 151
- 7
1
vote
1 answer
What kind of request is it?
I have installed Nginx in my server and i am getting a TCP request from a GPS + GPRS device. When i access the access.log i find this.
126.51.10.6 - - [06/Jun/2016:16:46:53 -0400] "GET / HTTP/1.1" 500 32 "-" "Mozilla/5.0 (X11; Linux x86_64)…

srj0408
- 25
- 1
- 1
- 6
1
vote
1 answer
Accessing large app files using Elastic Beanstalk and Flask?
I'm deploying a flask app through AWS Elastic Beanstalk, and when I try and push my app for deployment, i get an error that the contents are too big. Apparently, there is a hard maximum upload of 512 mb. However, I have some pickle files and a…

David Berger
- 11
- 3
1
vote
1 answer
Serving Flask + Apache + WSGI Behind Sonicwall
Strange problem here. I've gone through this tutorial on setting up a deployment environment for a Flask app.
When I navigate to the servers local IP address it is serving everything fine. However there is a problem serving the Flask/Python logic…

xGlorify
- 11
- 3
1
vote
1 answer
Flask with python 3.5
I'm trying to run a flask app on my aws ec2 instance. I've installed anaconda with python 3.5.
In order to install mod-wsgi I run the following command:
sudo yum install libapache2-mod-wsgi python-pip git
The result was that a lot of python 2.6…

Nickpick
- 145
- 8
1
vote
1 answer
Nginx serve static files for flask app 404
I've tried numerous solutions of other posts, but nothing seems to work for me, I always get a 404 error, when trying to let nginx serve static files of my flask application. Somewhere in between all those attempts on getting it to run, I also had a…

Zelphir Kaltstahl
- 111
- 1
- 5
1
vote
2 answers
Docker compose and nginx load balancer
Currently I have 2 Docker containers:
Application (python flask)
Load Balancer (nginx)
I'm starting both containers separately with docker-composer up
Nginx is listening in port 8080 and should forward HTTP requests to application which is…

gogasca
- 343
- 2
- 15
1
vote
1 answer
nginx - serve only with backend or 404, no static files in root
I am trying to serve all requests with the backend (uwsgi for flask in this case) and if the backend has no such path, nginx should return 404.
Somehow I only can get the backend to take over when I use
try_files $uri @uwsgi;
But that way, you…

Sebastian
- 113
- 1
- 5
1
vote
1 answer
Proxying a Flask app with gunicorn and nginx
I have a Flask application that is currently being served on a machine (call it first_vm) using the following command in supervisord:
gunicorn run:app -b 0.0.0.0:8002 -k socketio.sgunicorn.GeventSocketIOWorker --workers 1
This application is also…

ncocacola
- 111
- 1
- 5
1
vote
1 answer
NGINX + uWSGI + Flask. Some requests very slow
We're running a fairly large Flask application and finding that at random times we'll end up with a very slow request (sometimes a minute or more)
I presume the issue is related to lazy-loading modules and slow requests are when a new worker needs…

Cfreak
- 125
- 1
- 12
1
vote
0 answers
Nginx returning 500 Error instead of 400 Error
On validating user input into my api, I want to return 400 http status codes for bad requests. It works fine from flask and when running my api through gunicorn, but they always come out of nginx as 500 errors. my site config is the…

bcollins
- 113
- 5