Questions tagged [mod-wsgi]
mod_wsgi is an easy to use Apache module that can host Python web applications which support the Python WSGI interface.
23
questions
5
votes
4
answers
13k
views
Make mod_wsgi use python2.7.2 instead of python2.6?
i am running Ubuntu 10.04.1 LTS and it came pre-packed with python2.6 but i need to replace it with python2.7.2.
(The reason is simple, 2.7 has a lot of features backported from 3 )
i had ...
18
votes
5
answers
27k
views
WSGI : Truncated or oversized response headers received from daemon process
System Configuration : Apache2, Django 1.10, Python 3, Ubuntu 16.04 LTS
Django debug=True.
/var/log/apache2/error.log
[52:53.057967] [wsgi:error] [pid 4303] [client 1.1.1.22:24409] Timeout when ...
17
votes
2
answers
14k
views
Non-responsive apache + mod_wsgi after installing scipy
I am currently running a Centos 6.4 server, with Apache 2.2.15 and mod_wsgi 3.2. The server is hosting a django-based site (django 1.5.1, python 2.6.6). Everything was running fine until I installed ...
2
votes
1
answer
6k
views
mod_wsgi daemon mode - WSGIDaemonProcess per virtual host configuration?
I had a fairly simple question. When mod_wsgi is run in Daemon mode, and you enable the WSGIDaemonProcess and WSGIProcessGroup directives on a per virtual host basis, are these picked up by other ...
27
votes
2
answers
21k
views
How many processes should I specify in a WSGIDaemonProcess while running Django through mod_wsgi?
Let's say I have 2 sites(Superuser and Serverfault) running from their own Apache virtual host on one box. The 2 sites are powered by Django and are running on Apache with mod-wsgi. A typical ...
26
votes
7
answers
46k
views
How to set up Mod_WSGI for Python on Ubuntu
I am trying to setup MOD_WSGI on my Ubuntu box. I have found steps that said I needed to do the following steps I found at http://ubuntuforums.org/showthread.php?t=833766
sudo apt-get install ...
14
votes
4
answers
3k
views
Deploying Django App with Nginx, Apache, mod_wsgi
I have a django app which can run locally using the standard development environment. I want to now move this to EC2 for production. The django documentation suggests running with apache and ...
7
votes
1
answer
40k
views
How to get nginx to pass HTTP_AUTHORIZATION header to Apache
Am using Nginx as a reverse proxy to an Apache server that uses HTTP Auth. For some reason, I can't get the HTTP_AUTHORIZATION header through to Apache, it seems to get filtered out by Nginx. Hence, ...
6
votes
1
answer
4k
views
mod_wsgi "Call to 'site.addsitedir()' failed" on AWS Elastic Beanstalk Python 3.6 platform
On AWS Elastic Beanstalk, on the "64bit Amazon Linux 2017.09 v2.6.0 running Python 3.6" platform, there seems to be a problem with the mod_wsgi configuration. I see this in /etc/httpd/conf.d/wsgi.conf:...
3
votes
1
answer
33k
views
apache2.4 virtual host blocking access with authz_core log, even though authz not configured
So I'm getting 403: Forbidden errors on one of my apache2.4 virtualhosts.
What's interesting, is that /var/log/apache2/error.log reports:
authz_core:error] [pid 4878:tid 140394394269440] [client 10....
3
votes
2
answers
12k
views
Python: ImportError: No module named os [closed]
error_log
...
[Fri Sep 07 16:30:14 2012] [error] import os
[Fri Sep 07 16:30:14 2012] [error] ImportError: No module named os
-shell-
[root@lts5srv1 home]# ldd /root/epd-5.1.0/bin/python
...
2
votes
1
answer
4k
views
Fine tuning Django Apache mod_wsgi
First off I am looking for some help setting up my Django and Apache settings to fine tune it for my site for the best performance cost effectiveness.
Server info:
Django 1.3 Webfacion server, 80mb ...
2
votes
2
answers
684
views
my first "production" debian server configuration
I have been using Debian for a year, mostly as the distro for my internal company server. Now I am making a public e-commerce website and I am planning to use a dedicated Debian server at a datacenter ...
2
votes
3
answers
2k
views
Apache2 return 404 for proxy requests before reaching WSGI
I have a Django app running under Apache2 and mod_wsgi and, unfortunately, lots of requests trying to use the server as a proxy. The server is responding OK with 404 errors but the errors are ...
2
votes
2
answers
12k
views
Can't locate API module structure `mod_wsgi'
I'm working on setting up Trac to use wsgi, and am running into trouble getting mod_wsgi working. I downloaded and installed mod_sgi.
[box]# apachectl configtest
httpd: Syntax error on line 214 ...
2
votes
1
answer
3k
views
Running multiple Django projects within Apache, sys.path being over written
I have been trying to research how to do a multiple Python / Django deployment using Apache VirtualHosts.
The issue I am encountering seems straight forward,
ImportError: Could not import settings '...
1
vote
1
answer
9k
views
Django 2.1 deployment on centos 7 with apache, mod_wsgi, python3 venv
I've stumbled with this seemingly most relevant deployment option because guides seem to either reference mod_wsgi with python2, or deployment on deb based systems where expected paths are different.
...
1
vote
0
answers
660
views
Apache bloodhound installation, AWS host not serving site
Following the installation instructions here I went through the entire process on an AWS instance. Everything seems to be setup correctly, I can even run BH off the development server using:
tracd ./...
1
vote
2
answers
359
views
How may I know the amount of memory used by each one of my apache sites?
When I run ps aux I get the following process table http://pastebin.com/NJsASBek that shows how much memory is being used by each one of the subprocess. We can see apache proceess are shown like this:
...
0
votes
1
answer
2k
views
Apache and mod_wsgi, worker process stuck to W state, request never dies. How to diagnose?
I am running Apache 2.2 with mod_wsgi, Python 2.7 and mpm_worker. Occassionally, one of the worker processes gets stuck and all of it threads stop in writing state (as demostrated in the screenshot ...
0
votes
1
answer
10k
views
Cannot run mod_wsgi on Apache 2.4 x64 Windows
I have a Apache 2.2 installation with a site on Django. I load mod_wsgi.so module in my Apache config. Now I'm trying to migrate onto Apache 2.4 and have difficulties with WSGI.
First of all: my ...
0
votes
2
answers
3k
views
Reference the matched directory inside an Apache DirectoryMatch directive
I am attempting to configure Apache to host multiple django sites via mod_wsgi. The mod_wsgi setup tutorial gives an example configuration for this scenario where each app is in the same directory:
...
0
votes
1
answer
860
views
Django site running in Apache 2.4.6 on Centos giving 503 server error
Please assist. I have a Django site that i'm trying to configure to run in apache using mod_wsgi. I have setup my virtualhost as follows:
<virtualhost *:80>
ServerName mysite.com
...