Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
17 views

nginx healt check of wsgi app behind another nginx

I have 1 wsgi app that run on 2 nginx box. Let's call the 2 box : ++ box-1.mydomain.com (192.168.1.1) ++ box-2.mydomain.com (192.168.1.2) All will have to able serve 'myapp.mydomain.com' At each box, ...
0
votes
0answers
19 views

Apache Server through Time Out Connection error when load an app from a browser

I have a flask app that want to host in an apache2 server using wsgi interfase between Python Flask and Apache2. I have cloned the app into www/var/catalogapp/ and also have the config file of Apache(...
0
votes
0answers
20 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
16 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
25 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
77 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
6 views

correctly setting up pythonfor apach 2.4

I am trying to set u p python on my apache. Here's the scenario: Here's my /var/www/html directory. -rw-r--r-- 1 www-data www-data 2104 Sep 19 12:43 backend.php -rw-r--r-- 1 www-data www-data ...
0
votes
0answers
576 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
94 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
309 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
277 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
235 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
1answer
308 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 ...
0
votes
0answers
2k views

Apache2 mod_wsgi Error Timeout when reading response headers from daemon process

I have to work with the web service that has created with using uwsgi django .Apache2 works as a web server.When the web service got request most of time get the response.But if the service does not ...
1
vote
0answers
68 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 ...
0
votes
1answer
950 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
156 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
2k 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
117 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
120 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
196 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
13k 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
661 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
130 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
615 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
232 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
670 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
695 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
539 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
361 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
992 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
164 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
368 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
742 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
275 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
200 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
576 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
1k 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
3k 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
967 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
567 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 ...
0
votes
1answer
4k views

Target WSGI script not found or unable to stat [closed]

This problem has tortured me for days. I am using Apache, WSGI and django on my Raspberry Pi. Operating system is Raspbian. Everything is okay except this error from apache. [error] [client 127.0.0....
1
vote
1answer
2k views

Django WSGI application in a subdirectory?

Recently, I wanted to put one of my WSGI applications into a subdirectory, so that the other directories that cointain various scripts would work as before. In order to do that, I added the following ...
3
votes
1answer
917 views

Django + Apache + mod_wsgi: Why is wsgi script executed multiple times?

I'm relatively new to all the server technology and I followed this tutorial to deploy my django app on an Apache Webserver, using mod_wsgi: http://thecodeship.com/deployment/deploy-django-apache-...
1
vote
1answer
5k views

WSGIDaemonProcess for each application instance

I'm using Apache & mod_wsgi to deploy a django application on several servers. I've read in multiple places (including this: http://blog.dscpl.com.au/2012/10/why-are-you-using-embedded-mode-of....
3
votes
2answers
795 views

Python Django sites on Apache+mod_wsgi with nginx proxy: highly fluctuating performance

I have an Ubuntu 10.04 box running several dozen Python Django sites using mod_wsgi (embedded mode; the faster mode, if properly configured). Performance highly fluctuates. Sometimes fast, sometimes ...
6
votes
2answers
3k views

Why put a reverse proxy in front of a WSGI server?

A typical configuration for deploying a WSGI application includes a WSGI server (such as uWSGI or Gunicorn) behind a general-purpose web server (like nginx) that acts as a reverse proxy. One major ...
2
votes
1answer
224 views

How to install moinmoin-2 on dreamhost

How to install moinmoin-2 on dreamhost? I'm putting this here, so I can find it in the future. Maybe it is useful to other people too. I found it challenging because: it needs python2.7, and ...