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.

Filter by
Sorted by
Tagged with
0
votes
0answers
19 views

408 status code on checking access logs of django on apache using mod_wsgi in windows

one is php site and other is django project. Php site is working fine but not django project.It is working fine on local runserver but not on apache.I have followed https://www.codementor.io/@...
0
votes
0answers
12 views

apache is processing each request twice

I cannot figure out why is my apache server processing HTTP requests to one of my APIs twice. I have the following in my config: WSGIDaemonProcess myapp user=apache processes=3 threads=5 display-...
0
votes
0answers
21 views

mod_wsgi/3.4 (internal dummy connection)

In a similar fashion to Apache internal dummy connections, I sometimes get these requests every second about mod_wsgi whereas I'm currently using no project with mod_wsgi (still the module is enabled ...
0
votes
1answer
555 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
1answer
271 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 ...
0
votes
0answers
175 views

apache2 sends 404 responses after some time without requests

I'm getting the following <body>404 - File not found</body> response from my apache server every time after more than a day without sending requests. My setup is: OS: Ubuntu 16.04 Apache/...
0
votes
0answers
101 views

Running a (or multiple) Django projects and Nextcloud on one domain on Nginx

I'm running Nginx and want to have the following setup: domain.com/site-one/ Goes to a Django project domain.com/site-two/ Goes to an arbitrary other (future) project domain.com/nextcloud/ Goes to ...
1
vote
1answer
3k 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
2answers
406 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
1answer
769 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
2answers
2k 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:...
1
vote
0answers
1k 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
1answer
30 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
0answers
198 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
1answer
557 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 ...
0
votes
0answers
2k 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
0answers
643 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
0answers
482 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
0answers
603 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
1answer
333 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?...
0
votes
2answers
528 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
0answers
119 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
1answer
1k 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
1answer
196 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
3answers
3k 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
0answers
130 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
1answer
197 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
1answer
248 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/...
14
votes
2answers
17k 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 ...
-1
votes
1answer
998 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
1answer
183 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
0answers
1k 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 ...
3
votes
1answer
1k 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
0answers
239 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
2answers
959 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
3answers
818 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
1answer
675 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
2answers
405 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
1answer
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
0answers
182 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
1answer
461 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
2answers
896 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 ...
1
vote
0answers
383 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
0answers
213 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
1answer
698 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
1answer
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
2answers
4k 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
1answer
1k 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) ...
1
vote
1answer
808 views

How to configure Apache with mod_wsgi so that error messages come from the application?

I have deployed a WSGI application in Apache2 with mod_wsgi. The application is made so that it responds with a 400 response code if the data provided by the user in a form is invalid. The ...
0
votes
1answer
1k views

uwsgi, multiple environment variables

I am using uWSGI to run a Django application on nginx. I have configured the server and all seems to be running well. What I would really like to be able to do is store the django secret key within ...