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.

WSGI is the Web Server Gateway Interface. It is a specification for web servers and application servers to communicate with web applications (though it can also be used for more than that). It is a Python standard, described in detail in PEP 333.

124 questions
1
vote
0 answers

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.py and access it at localhost:8134 the site works…
user58446
  • 141
  • 2
  • 5
1
vote
1 answer

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?
Jasmine
  • 243
  • 1
  • 3
  • 8
1
vote
2 answers

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 Django websites on this server). As far as I…
Antwane
  • 165
  • 1
  • 11
1
vote
1 answer

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 python2. What are my alternatives to do the deploy?…
Liam
  • 241
  • 4
  • 10
1
vote
1 answer

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 might cause the following error? mod_wsgi…
frankster
  • 121
  • 5
1
vote
1 answer

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 creates a file called /tmp/test-wsgi.txt enumerates the…
1
vote
0 answers

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 server, and may also be deployed as an WSGI-compliant…
Sam
  • 21
  • 2
1
vote
2 answers

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 configure the WSGISocketPrefix The problem is that…
petey
  • 562
  • 2
  • 8
  • 20
1
vote
3 answers

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 standard port 5432 and I have no problems to use…
xav
  • 21
  • 5
1
vote
2 answers

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 Trac environment in /var/trac and…
user1801810
  • 133
  • 5
1
vote
1 answer

Installing mod_wsgi error - config.status: error: cannot find input file: Makefile.in

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 1704: apxs: command not found ./configure: line…
User
  • 1,365
  • 3
  • 12
  • 17
1
vote
0 answers

"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 create a virtual environment. I did the same and was…
1
vote
0 answers

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 removal or anything that would be obvious. How on…
Designer023
  • 183
  • 1
  • 1
  • 8
1
vote
2 answers

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 load balancer around all apache servers, each server…
user969923
  • 113
  • 1
  • 4
1
vote
1 answer

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 response also contains the HTML with the form and invalid…
manu
  • 160
  • 11
1 2 3
8 9