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
2
votes
2 answers

How to manually start and re-start Apache with mod_wsgi powering a password protected Python WSGI app?

I'm working on a project where I have to meet some regulatory requirements that require at least 3 out of 5 authorized users to start a backend web service that handles very sensitive information using pre-assigned passwords. Right now, the…
2
votes
3 answers

Where is the environment variable?

I have an apache2 server with active mod-wsgi, but I can't get the environment variable PYTHON_EGG_CACHE. Here the important lines out of my virtualhost.conf: DAV svn SVNParentPath /var/svn SVNListParentPath Off WSGIProcessGroup…
2
votes
1 answer

Serving arbitrary subdomains using apache2, mod_wsgi and django

I'm attempting to setup a django development server using a sandbox approach. The specific technologies in place are apache2, mod_wsgi and django. I'd like to use subdomains formatted as: {project}-{user}.domain.com. I'd like that subdomain to…
Adam Hobson
  • 121
  • 1
2
votes
1 answer

Apache crashes a few seconds after the start

i've got a problem with apache. When i try to start it (/etc/init.d/apache2 start) it dies after a few seconds. It shows up on "ps aux" consuming a lot of memory and then dies. I don't know what could be causing apache to consume this amount of…
Nacho
  • 21
  • 3
2
votes
2 answers

Django Apache WSGI - very slow production server

I'm scratching my head on this one. Django is installed on my production and dev servers but the live server under not ver heavy load is running extremely slow. Every page is taking more than 30 seconds at times. here is my Apache…
Derek Organ
  • 591
  • 1
  • 10
  • 20
2
votes
2 answers

What's the most effecient hosting solution for running multiple Pyramid (Python) websites?

In the past, I've written websites in two languages. PHP for smaller sites and Python for larger sites. With this setup, I would run multiple Paster instances to serve each site on a different port and then use nginx to proxy to Paster. This worked…
dave
  • 21
  • 1
2
votes
1 answer

How to configure ReviewBoard with mod_wsgi and Apache in non-root location

I'm trying to configure ReviewBoard on a Mac running OS X Leopard (10.5.8) with Python 2.5 and mod_wsgi 3.3 installed. I'm using sqlite and the standard Apache 2 that comes with OS X; the document root is located at /Library/WebServer/Documents/.…
Quinn Taylor
  • 152
  • 1
  • 9
2
votes
1 answer

Django Deploy Reccomendations

I have a Web application provided in SaaS way... (each client has his own sub-domain and his own database). My app uses Django Python and Postgresql. Right now is hosted on a linux shared hosting plan, using Apache, and mod_wsgi, but I am migrating…
quarry32
  • 255
  • 2
  • 11
2
votes
2 answers

One of my apache processes is huge - how can I find out why?

I'm running Apache 2.2.12 with mod_wsgi, hosting a Django site. Most of the apache child processes weigh in at about 125MB RSS, but occasionally I see one child balloon to > 1GB RSS. At this point there's usually 1 huge process (>1GB), a couple of…
Malcolm Box
  • 211
  • 2
  • 6
2
votes
7 answers

I'm DOSing my own Apache server, and I can't stop immediately. What can I do to make things better in the short term?

We've got a BUNCH of distributed clients that, among other things, upload log files to our Apache server. We messed up log rotation on some logs, so we're now uploading relatively large files from these clients many times a day. Obviously, the fix…
too_embarrassed
2
votes
4 answers

How to check if mod_wsgl has correcly installed in apache

I have been trying to install mod_wsgl and django but iwas unsuccessful. I am thinking of going step by step. LEaving django aside how can i make sure that i have mod_wsgl installed correctly so that my python scripts run from website Then i will…
John
2
votes
2 answers

How to let mod_wsgi only handle certain URLs under Apache?

I have a Django app that handles "/admin/" and "/myapp/". All the other requests should be handled by Apache. I've tried using LocationMatch but then I'd have to write a negative regex. I've tried WSGIScriptAlias with the /admin/ prefix but then the…
Frederik
  • 133
  • 6
2
votes
2 answers

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 for this purpose. I will be accepting credit…
Shackler
2
votes
1 answer

django mod_wsgi memory problem

I have my django application on a VPS server (128mb ram) When i start it with python manage.py runserver, it works perfectly, but if I try to use it over apache/mod_wsgi it causes major slowdown very soon (after I click few random links on my…
dabrorius
  • 65
  • 2
  • 5
2
votes
5 answers

How do I find the Python executable that my server is using?

I'm new to Linux. I'm managing a (Linux - Apache - mod_wsgi - Django) server, where there are multiple installations of Python. The site is currently working, but I want to find out which executable of Python is used to run it. I know it's not the…
Ram Rachum
  • 5,231
  • 7
  • 34
  • 46