Questions tagged [flask]
144 questions
0
votes
0 answers
NGINX deny all except websockets for Flask app
I have an Ubuntu server running Flask app under nginx, this is my conf:
upstream flaskapp {
server 127.0.0.1:5000 fail_timeout=0;
}
server {
listen 80;
server_name _;
location / {
add_header "Access-Control-Allow-Origin"…

Igniter
- 101
0
votes
0 answers
/myproject.sock failed (111: Connection refused) while connecting to upstream,
Iam serving flask by nginx and uwsgi but i am getting a permission error
Iam newbie with nginx
/var/log/nginx/error.log
*1 connect() to unix:///usr/share/nginx/html/myproject/myproject.sock failed (111: Connection refused) while connecting to…

black snow
- 1
- 1
0
votes
1 answer
Apache2 only serving "Index of /"
I am setting up an Apache2 server on Ubuntu to host a Flask website. The issue that I am having is that Apache is only serving my files on an "Index of /" page, rather than serving my site. I am new to Apache and have tried setting up my site by…

Senrab
- 101
- 2
0
votes
1 answer
LDAPStartTLSError: ('wrap socket error: [SSL] internal error (_ssl.c:1108)',)
Hy
I'm starting learning flask but when I follow this documentation
I receive this error... Strange that using ldapsearch everything is fine....
Using:
Ubuntu Focal
python3.8
python3-flask 1.1.1-2 …

Paulo Ricardo Bruck
- 41
- 1
- 5
0
votes
0 answers
Nginx uniq session and clear cookie
Im using nginx to redirect my API code and apache guacamole.
i have an issue that i need to use multiuser connection but if im logged in to Auser and i try to connect to Buser ( same browser) it try to reconnect to Auser even if the URL is complitly…

Batchen Regev
- 131
- 1
- 7
0
votes
1 answer
Receive 404 Not Found for a Flask app when I use Nginx as reverse proxy with Gunicorn socket
I have been following the tutorial here to deploy my own flask app to my Ubuntu 16 server. I used Nginx as a reverse proxy to pass requests to a gunicorn socket. Just in case anyone wants to know ufw is allowed for Nginx All.
Here is what I tried…

wellwellwell
- 63
- 1
- 8
-1
votes
1 answer
Nginx + Gunicorn + Flask not serving static files
I am new to Nginx and Gunicorn....
I am trying to serve flask app on certain prefix....
ex: https://myweb.com/flask/prefix/
everything works fine except it is not loading static files......
my nginx site configuration looks like below
location…

Praveen
- 101
- 2
-2
votes
1 answer
Nginx Internal Server Error
I am new to NGINX and uwsgi and Im deploying my first python web application. Having tried numerous times, I get an internal server error. There may be something wrong with my configurations but i can't see what!
I have posted the contents of my…

Jlearner
- 19
- 2
-2
votes
1 answer
Web Server Link Domain
I have a web server and I want to link it to a domain. Will making an A Record pointing to the ip of the server link the domain? Also what is the "main port" for requests. By main port I mean the port you go to when you make a request. My site is…

Ash
- 3
- 1