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.

mod_wsgi is a simple to use Apache module which can host any Python application which supports the Python WSGI interface. The module would be suitable for use in hosting high performance production web sites, as well as your average self managed personal sites running on web hosting services.

399 questions
3
votes
1 answer

How to debug Django/WSGI/Apache errors

I have a Django 1.11.17 application deployed on Apache 2 and WSGI, Python 2.7. Apache shows an error "Truncated or oversized response headers received from daemon process" I have checked the solution given in WSGI : Truncated or oversized response…
3
votes
1 answer

Apache: Truncated or oversized response headers after graceful restart

After graceful restart, some python wsgi processes fail with 500 (internal server error): [20:06:33] [mpm_prefork:notice] AH00171: Graceful restart requested, doing restart [20:06:36] [wsgi:error] Truncated or oversized response headers received…
guettli
  • 3,113
  • 14
  • 59
  • 110
3
votes
0 answers

Issues with URL length in Apache/mod_wsgi

I have a python wsgi API in which I process incoming URL payloads of varied length. I believe, but am not absolutely sure, that I may have run into a limitation of URL size. For a particular payload (> 6K characters), it runs fine locally using the…
horcle_buzz
  • 175
  • 3
  • 10
3
votes
1 answer

How do I install mod_wsgi in Apache for python 3.5 on CentOS 7 if apxs2 is missing?

I am currently trying to install mod_wsgi 4.4.21 into Apache 2.4 for a Python 3.5 web server on CentOS 7. Under "Configuring The Source Code" in the Quick Installation Guide, it says this: On some Linux distributions, such as SUSE and CentOS, it…
gla3dr
  • 141
  • 1
  • 7
3
votes
1 answer

Apache and mod_wsgi returning 504 error when posting specific SVG string

I have a wierd 504 error occuring in Apache + mod_wsgi when I post a specific SVG string. The backend application is Python Flask, but it does not seem to get to the application at all. Here is one request that returns a 504 error: curl…
Martin Taleski
  • 363
  • 3
  • 5
  • 14
3
votes
1 answer

File upload issue with Django app running under Apache/mod_wsgi when daemonized

I've got a Django app running under Apache2 (linux) using mod_wsgi and file uploads fail when running in daemon mode but works when the python interpreter is embedded. Any idea what could be causing this and how I fix it? The following Apache…
Tom
  • 2,622
  • 1
  • 20
  • 12
3
votes
1 answer

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.214.154.19:33009] AH01630: client denied by server…
1n5aN1aC
  • 145
  • 2
  • 2
  • 9
3
votes
1 answer

Python background task thread lock error with mod_wsgi

I have a small python web application built on the Flask framework and deployed with mod_wsgi to apache. The application is scheduling a background task with apscheduler that runs every couple of minutes. From the error log of apache I have been…
totokaka
  • 202
  • 2
  • 8
3
votes
1 answer

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-virtualenv-and-mod_wsgi/ Here is my virtual hosts…
basilikum
  • 217
  • 3
  • 11
3
votes
1 answer

Django site performance problem

my mod_wsgi/django app has ~2s response time with or without memcached in-memory caching. response is the same 2s with or without DNS resolution (i.e. with direct IP request) for comparison, a simulaneously running mediawiki php process running with…
Evgeny
  • 599
  • 3
  • 10
  • 17
3
votes
1 answer

Configuring wsgi for a simple Python based site

I have an Ubuntu 10.04 server that already has apache and wsgi working. I also have a python script that works just fine using the make_server command: if __name__ == '__main__': from wsgiref.simple_server import make_server srv = make_server('',…
jbbarnes77
  • 73
  • 3
3
votes
2 answers

Apache - Difference between ScriptAlias and WSGIScriptAlias

I'm using apache on RHEL Linux server In my /etc/httpd/conf.d/httpd.conf there are two directives: WSGIScriptAlias /apps /var/www/apps Options MultiViews ExecCGI MultiviewsMatch Handlers SetHandler wsgi-script …
Jiri Kadlec
  • 31
  • 1
  • 2
3
votes
1 answer

Do Apache + mod_wsgi httpd.conf settings for django affect mysql?

I have a django website using Apache and mod_wsgi. Since the last 4-5 days I keep getting this type of error on my admin e-mail. OperationalError: (1040, 'Too many connections') I have installed django-debug-toolbar and I have an average of 100-150…
xpanta
  • 159
  • 2
  • 9
3
votes
1 answer

Installing mod_wsgi with python 2.7 on ubuntu

I tried to install mod_wsgi on my ubuntu server using the package manager, but noticed it depends on python 2.6. I'm using python 2.7, and would rather avoid installing 2.6... Does mod_wsgi really depend on python 2.6, even if I intend to run only…
Filipe Correia
  • 243
  • 1
  • 4
  • 9
3
votes
1 answer

Apache2 mod_wsgi python 2.6 Django very slow

I've tried about 1000x things, but I can't seem to figure out why a simple django website is slow using apache 2.2.14/wsgi latest / django 1.3. I've confirmed the problem isn't our database by turning on mysql slow query logging. I've reviewed the…
1 2
3
26 27