Questions tagged [wsgi]
Web Server Gateway Interface is a specification for web servers and application servers to communicate with web applications. It is a Python standard, described in detail in PEP 333.
124
questions
0
votes
0
answers
12
views
Connection refused to Flask WSGI application on Apache2
I am attempting to get a Flask API running on Apache2 Server but I am getting a net::ERR_CONNECTION_REFUSED
Since I am running the flask API on another server I am using a Proxy Reverse on my main ...
0
votes
2
answers
165
views
configuring SSL for two different applications on same server: web server and python
I want to run SSL for web server https://www.domainname.com on port 443 and python REST api server https://mgmt.domainname.com with Flask. I have configured Apache SSL and it is running on 443. I ran ...
0
votes
0
answers
284
views
unable to find django error when running django app through apache2
I am trying to get a django app running on a apache2 server both on a raspberry pi for a project of mine. The appache server is running but I can't pull up the web page as I just get an "Internal ...
0
votes
1
answer
147
views
Server set up using app.yaml, cron.yaml, etc. But directories aren't recognized
As the title says, the server has been configured to recognize sub directories but for whatever reason they are not being recognized when I load a web page. Is there any way to debug what is going on?
...
0
votes
1
answer
451
views
Cant start wsgi through Nginx
At first:
When i started nginx i see errors in log:
unix:/root/project/flask_paramiko.sock failed (13: Permission denied) while connecting to upstream
uwsgi.ini:
[uwsgi]
#chdir = /root/project
...
0
votes
1
answer
498
views
service apache2 start causes error in django
On running
apache2 configtest
I get
Syntax error on line 2 of
/etc/apache2/sites-enabled/firstweb.conf: Invalid command
'WSGIScriptAlias', perhaps misspelled or defined by a module not
included in ...
1
vote
0
answers
3k
views
Why is gunicorn not creating a .sock or .pid file?
First things first, I would like to clarify that I am completely knew to debugging servers and deploying in general. I'm a student developer for my university and so far all of my work has been ...
7
votes
1
answer
7k
views
How to have apache handle .well-known/acme-challenge and still have / passed to wsgi
In order to support automatic LetsEncrypt certificate renewal certbot uses the --apache handler.
e.g.
certbot renew --apache
This handler installs a temporary VirtualHost for */.well-known/acme-...
0
votes
1
answer
2k
views
Python module import from a WSGI script fails on RedHat server
Here is a minimal WSGI script, importing a custom python module.
It runs fine on a development environment (Mint 18.1, Apache 2.4.18, libapache2-mod-wsgi-py3), but fails when deployed to a test ...
1
vote
1
answer
11k
views
How to deploy a WSGI/Python app behind Nginx on Windows?
Coming from the Linux environment, I'll try to be as accurate as possible with Windows concepts I clearly don't master.
Here's my current situation:
I have a functional Windows (10 pro x64) Nginx ...
3
votes
2
answers
2k
views
Getting compiled Python mod_wsgi module working on Apache server with SElinux enforcing mode
Trying to get my Python/Django app working on a RedHat Server in an ideal setting. Could not use the mod_wsgi from the package as it has some dependency issue when checking for modules in my virtual ...
0
votes
1
answer
4k
views
How can I solve 0x80070585 Error code on my Python Flask wfastcgi app?
I'm trying to deploy a Flask app on IIS (usually doing it on an Nginx/Gunicorn stack).
My stack
I'm working with Python 3.7 installed globaly, IIS 10 on Windows 10 pro.
What I tried
Activating CGI ...
0
votes
3
answers
8k
views
Apache/httpd error: Invalid command 'WSGIPythonHome'
ISSUE:
My Apache/httpd server will not launch. journalctl -xe reveals:
Feb 27 01:50:12 localhost.localdomain httpd[4398]: AH00526: Syntax error on line 355 of /etc/httpd/conf/httpd.conf:
Feb 27 01:...
2
votes
0
answers
2k
views
Timeout when reading response headers from daemon process 'horizon': /opt/stack/horizon/openstack_dashboard/wsgi.py
When trying to allocate a floating IP in openstack (on Ubuntu 18.04.1), I'm getting this error. "Danger: There was an error submitting the form. Please try again"
In /var/log/apache2/horizon_error....
0
votes
1
answer
67
views
Running Pootle server under Apache with mod_wsgi on ubuntu server
I have successfully installed a pootle server in a localhost environment using the django default server following the instructions found here: http://docs.translatehouse.org/projects/pootle/en/stable-...
0
votes
0
answers
649
views
nginx to apache2 reverse proxy not working
I'm running an nginx as a reverse proxy and would like to serve apps running on an apache2 server.
The app on the apache2 server is working and available via http://192.168.102:8080/ but I always get ...
0
votes
1
answer
2k
views
Page not found when running nginx with wsgi
I wanted to run a flask application using nginx. I have gone through this tutorial and up to the point when I start service using wsgi from command line everything works fine (which means I can access ...
1
vote
0
answers
3k
views
Connection refused by Unix socket file
Having some trouble linking up Django + uWSGI + NGINX
If I run the Django development server, the page works perfectly.
If I run with: uwsgi --http 0.0.0.0:8134 --wsgi-file /test/test_project/wsgi....
0
votes
0
answers
2k
views
wsgi application not writing log files
i run a wsgi application under debian 8.9 / apache2 and the app (LinOTP) is not writing logfiles. I'm not shure if this is a problem of the app or from setup.
I see errors in the apache error.log
...
0
votes
0
answers
898
views
Lighttpd running FastCGI script hangs and give 500 internal error
I'm attempting to use lighttpd and fastcgi to run a small flask application. When I try to start lighttpd, it starts the server just fine, but when I try to connect in the browser, it hangs without ...
0
votes
0
answers
1k
views
How to serve via uWSGI from Tomcat
I have a simple python function that I need to run as a web service from a tomcat server. This is the setup I got as an external requirement from my client and I cannot change it. I've managed to make ...
1
vote
1
answer
635
views
Access from VMWare (debian) to remote host (Ubuntu)
I have created a web service using django, wsgi and nginx in ubuntu.(http://127.0.0.1:8000) . My network connection is NAT. I want to access to this web service from Linux in VMWare. How can I do this?...
1
vote
2
answers
2k
views
Configure datadog-agent for gunicorn metrics
I have datadog-agent installed on my Debian 8 server. It is already configured and works well to report metrics about postgres, nginx, system, etc.
I want to monitor my gunicorn daemons (i have 2 ...
1
vote
1
answer
309
views
Which is Best way to serve multiple wsgi apps using apache2 with different python versions?
Right now I've got a python2 django app deployed in my sever using apache2 and mod-wsgi. Now I want to deploy another one, but this is written in python3. My problem is that mod-wsgi is compiled to ...
1
vote
1
answer
2k
views
Django 1.10.3 Apache wsgi - ImportError: cannot import name signals
Overnight django stopped working, possibly because of an automatic package upgrade on the server. Its wsgi script now fails to load in production, but running the development server works fine. What ...
0
votes
1
answer
292
views
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 ...
0
votes
3
answers
4k
views
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 ...
2
votes
0
answers
179
views
Apache with python wsgi reaches MaxRequestWorkers and becomes unresponsive
I have an application running on apache under Ubuntu (tried 12 and 14) using python via WSGI. When I get a little too much traffic I see "server reached MaxRequestWorkers..." in the error log, I will ...
0
votes
1
answer
409
views
Would I need uWSGI for a application or Nginix will suffice?
According to official uWSGI docs : A web server faces the outside world. It can serve files (HTML, images, CSS, etc) directly from the file system. However, it can’t talk directly to Django ...
0
votes
1
answer
338
views
How can I run wordpress on a subdomain on the same server as a Flask WSGI application?
I've had a Flask/WSGI app running just fine on an Apache host for the last year. The httpd.conf is set up like this:
ServerName myapp.com
WSGISocketPrefix /var/run/wsgi
WSGIScriptAlias / /var/www/...
16
votes
2
answers
23k
views
Wiring uWSGI to work with Django and nginx on Ubuntu 16.04
I am trying to follow this tutorial to setup uWSGI with Django and nginx on Ubuntu16.04.
It all works fine up until the very last step (oh the irony...) where I try to execute this command:
sudo ...
0
votes
1
answer
2k
views
Serving a Python Page with Windows / Apache / Mod_WSGI?
I'm trying to setup python / apache / WSGI on windows.
I have the following installed, all 32-bit and vc9:
Apache 2.4
Python 2.7.9
Mod_WSGI.so in the modules folder.
http://localhost/ Displays the ...
1
vote
1
answer
268
views
wsgi script's environment is isolated hosted on httpd, CentOS 7
I'm hosting a simple wsgi application on httpd over CentOS 7 using mod_wsgi and trying to remove the isolation illustrated below.
The wsgi app,
The following script is my wsgi application.
it ...
2
votes
0
answers
2k
views
recv not ready (11: Resource temporarily unavailable)) (nginx/1.1.19, supervisorctl, gunicorn )
I have site on Ubuntu 12.04.5 LTS, django (supervisorctl, gunicorn).
It work 1 year without problems, but today my zabbix server sending me messages about alerts (every 3-7 minutes) about timeout (for ...
4
votes
1
answer
2k
views
What's the difference between running Python web applications in normal way and running them under wsgi?
I know that in order to run a Python web application(an application developed with frameworks such as Flask & Django) on the server, you need to deploy it using things such as uwsgi, wsgi.. ...
1
vote
0
answers
250
views
Install web layer in OpenERP 8 as a stand-alone HTTP server
In Odoo 6.0, when downloading OpenERP, there are openerp web (for web server), and openerp server source code tarball separately. From version 6.1, they made it all-in-one, OpenERP is an HTTP web ...
1
vote
2
answers
2k
views
Where is WSGI installed on Centos?
I am getting a permissions issue when running django in daemon mode. Reading here https://code.google.com/p/modwsgi/wiki/ConfigurationIssues#Location_Of_UNIX_Sockets I think the solution is to ...
1
vote
3
answers
1k
views
httpd.service Cannot connect to database Centos 7
I'm trying to connect to PostgreSQL Unix domain socket from a python web application with mod_wsgi. Relevant system components:
CentOS 7 x64
Python 2.7.5
SELinux disabled
PostgreSQL is listening on ...
0
votes
1
answer
999
views
Apache WSGIScriptAlias - skip a certain prefix
The docs for WSGIScriptAliasMatch https://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGIScriptAliasMatch are openly scary. Is there a way to say "Everything in this directory goes through ...
1
vote
2
answers
485
views
Trac/Apache Displays Script Contents (WSGI)
I am struggling with a new Trac 1.0.3 install (from source after having same issue installing via easy_install).
Debian 7.8
Apache 2.2.22
Python 2.7.3
Genshi 0.6
Sqlite 3.7.13
WSGI 3.3
I created the ...
1
vote
1
answer
1k
views
Installing mod_wsgi error - config.status: error: cannot find input file: Makefile.in [closed]
Below, I'm trying to install mod_wsgi.
[root@server]# ./configure --with-python=/usr/local/bin/python2.7
checking for apxs2... no
checking for apxs... no
checking Apache version... ./configure: line ...
1
vote
0
answers
209
views
"Error importing middleware" on osqa
I installed osqa with postgresql as backend on ubuntu 14.0.4 using the tutorial below
http://wiki.osqa.net/display/docs/ubuntu+12.04,+django+1.3,+mod_wsgi,+virtual_env,+postgresql
which asks to ...
0
votes
1
answer
626
views
How to run WSGI-file with Nginx
I have a Python-application with a Bottle-webserver running with port 8080. Now i will connect Nginx to the Bottle-webserver with a wsgi-file.
Now, i have a wsgi-file, but how can i execute this with ...
0
votes
2
answers
1k
views
Configuring wsgi application to serve a static html?
I'm looking to install www.planetplanet.org in openshift. I've hosted a few php apps on openshift, but am not sure how python apps work. The openshift template gives me a wsgi.py file, which needs ...
2
votes
0
answers
605
views
Configuring mod_wsgi daemon mode processes and threads
I am planning to use mpm_worker or mpm_event with daemon mode of mod_wsgi. How to configure processes and threads of WSGIDaemonProcess directive for the optimal performance of apache 2.4.9
1
vote
0
answers
230
views
Django wsgi and mod_pagespeed not working
I installed mod_pagespeed on my server and it's working as far as the page header is concerned:
X-Mod-Pagespeed:1.7.30.5-3847
The problem is that it's doing nothing else. No whitespace or comment ...
0
votes
1
answer
1k
views
Socket error with uWSGI
I am trying to run uwsgi.ini file with
uwsgi --ini uwsgi.ini and it gives me an error
The -s/--socket option is missing and stdin is not a socket.
[wsgi.ini]
socket=0.0.0.0:8001
chdir=/home/ubuntu/...
0
votes
1
answer
2k
views
Database connection to postgresql refused for flask app under mod_wsgi when started by systemd
I'm having a weird problem where a flask application I am trying to run (https://github.com/pyfarm/pyfarm-master) under mod_wsgi under Apache under CentOS 7 cannot connect to a local postgresql server ...
1
vote
2
answers
5k
views
Tuning django based site deployed using apache wsgi for better performance
I'm running django application using apache+mod_wsgi, I have setup 6 medium ubuntu servers on Amazon ec2 in which 2 for mongo and 4 for django and apache, using ebs for postgresql and configured a ...
0
votes
1
answer
2k
views
Using uwsgi and gunicorn at the same time or fully switch to gunicorn?
We are running our python app behind nginx. First we used uWSGI, because it is fast, reliable and easy to deploy. Next, as the number of simultaneous clients (using server-sent events/eventstream) ...