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
0
votes
1 answer

AIX Missing Symbols ap_cleanup_scoreboard and ap_accept_lock_mech for Apache Process. However, the symbols do exist

I am having a problem whereby apache is not able to find certain symbols referenced from a library (mod_wsgi) loaded within the apache process. When i start the apache process, i get this error. root [zibal]% ./usr/local/apache2/bin/apachectl…
user60899
  • 123
  • 1
  • 3
0
votes
2 answers

Serving static files fails - nginx

I've been looking and trying around all night, but without success. I configured nginx to serve my static files and proxy all the other traffic: server { listen 80; server_name example.com; access_log…
user59437
0
votes
1 answer

Host multiple apps with Django, mod_wsgi

I want to host two web apps using a same Apache server, and with IP address in the URL. Two apps are differentiated by their URLs. For example, 203.1.1.1/app1/ and 203.1.1.1/app2/ I'm using mod_wsgi with Apache. However, I'm able to access only one…
Barun
  • 289
  • 1
  • 4
  • 13
0
votes
2 answers

How to serve dynamic pages outside the document root?

I'm trying to setup a simple web app and I'm having some difficulties. Here's how I have it setup : /srv/www/application <-- python code /srv/www/public_html <-- document root I want Apache to serve everything in public_html if he can find it,…
subb
  • 103
  • 3
0
votes
2 answers

Deploying Django in CentOS - Internal Server Error 500

My system: CentOS: 5.5 x86_64 GNU/Linux Apache/2.2.16 mod_wsgi-3.2-1.el5.x86_64 python 2.6.6 django 1.2.3 My file example.wsgi: #!/usr/local/bin/python import os, site, sys # add the virtual environment…
anhtran
  • 101
  • 1
  • 2
0
votes
1 answer

Preventing Django app from causing Linux box to run out memory

One of my Linux web servers recently ran out of memory, hung itself in an OOM kill frenzy, and had to be rebooted. This is a 512 MB VPS, but it has been running without problems since it was set up months ago. How can I prevent this from happening…
Vebjorn Ljosa
  • 662
  • 1
  • 5
  • 13
0
votes
1 answer

Django, modwsgi and apache virtualhosts

I have gotten virtual hosts to work, but somehow this setup of mine is behaving strangely. NameVirtualHost * ServerAdmin webmaster@localhost ServerName x.com WSGIPassAuthorization On WSGIScriptAlias /…
rdrey
  • 103
  • 5
0
votes
1 answer

mod_wsgi with dynamically allocated UIDs

I have a system where users upload wsgi applications and we serve them using apache/mod_wsgi. For scaling reasons, we're simply using the WSGIDaemonProcess directive and setting them to dynamically allocated UID/GIDs. The problem is, we don't have…
dave paola
  • 137
  • 4
0
votes
1 answer

mod_wsgi + cherrypy = 404 - The path '/index.wsgi/' was not found

The .htaccess : AddHandler wsgi-script .wsgi RewriteEngine On RewriteBase / RewriteRule ^(media/.*)$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ /index.wsgi/$1 [QSA,L,PT] The index.wsgi : import atexit import threading import…
OldJim
  • 301
  • 2
  • 5
0
votes
1 answer

Limit a form post size with Apache / Django - clarification

There is already an answered question on this topic: Limit a form post size with Apache / Django but I'm not sure what this means: "If, for example, you are permitting file upload to a particular location" (source:…
0
votes
1 answer

mod_wsgi memory leak?

I've got a django app running through mod_wsgi on Apache 2 (Worker) behind an Nginx reverse proxy (also serving static content). When the app starts to get a bunch of hits concurrently, memory usage will spike from <20% to >96% and the whole…
erikcw
  • 697
  • 14
  • 22
0
votes
2 answers

How to debug a broken site config on Apache2

I am currently trying to run a simple BottlePY site on Apache2 but am getting an Internal Server Error. Here is the config file for the site ServerAdmin removed@removed.com ServerName removed.org DocumentRoot…
0
votes
1 answer

Run Mod_Python with Mod_WSGI on Apache for Django -- Segmentation fault (11)

Okay, so I have to use an existing server to run my Django web app on. The server is running Mac OS 10.6 Server. It comes with Python 2.3, 2.5, and 2.6 pre-installed. I have edited my http.conf file to include the following: # Force python to run in…
ChrisJF
  • 103
  • 1
  • 4
0
votes
1 answer

Recent apache + mod_wsgi + django install instructions?

I've been hunting 'round google and the web to get a django setup running with apache and mod_wsgi under ubuntu 10.04, but with no success. Does anyone know of any recent instructions on how to install the aforementioned products? Thanks!
Wayne Werner
  • 739
  • 4
  • 15
  • 27
0
votes
3 answers

Django not running on CentOS but simple wsgi example works

my django.wsgi import os import sys sys.path.append('/var/www/django') os.environ['DJANGO_SETTINGS_MODULE'] = 'myapp.settings' os.environ['PYTHON_EGG_CACHE'] = '/var/www/django/myapp/.python-eggs' import django.core.handlers.wsgi application =…
John