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

Deploying django website only for local network?

I developed a website with Django and I am deploying it with apache and mod-wsgi (as explained here). The catch is that I want to make sure that this website is accessible only on my local network. On the same server, I will publish another website,…
a06e
  • 353
  • 1
  • 4
  • 10
2
votes
1 answer

Deploying Django application as Wordpress subpage (at sub url), mod-wsgi

I have a Wordpress blog, let's say that it's address is like yakblog.org and it is a Wordpress blog installed on Ubuntu 12.04 server. Now, I would like to run a Django application as one of the sub page of my blog, so I could access it like this:…
yak
  • 113
  • 1
  • 2
  • 10
2
votes
2 answers

mod_wsgi not working on Apache 2.4.12 64 bit on Windows 7

I'm running Apache (Haus) 2.4.12 64 bit on Windows 7 64 bit. Python 2.7.9 64 bit is installed. Apache is running flawless if I don't try to load mod_wsgi. I downloaded mod_wsgi.so from this site. I extracted this file, copied mod_wsgi.so to…
renatov
  • 163
  • 1
  • 1
  • 9
2
votes
0 answers

how to serve a single page application with openshift

I'm tryng to deploy a single page app on openshift. On openshift all the static contents have to be in wsgi/static dir, but I obviously want to serve my static index.html from the root. Every attempts to do this with an .htaccess in wsgi/ dir…
2
votes
1 answer

virtualenv Failed to map segment from shared object: Permission denied

When SELinx is in permissive the Django webapp runs fine with no alerts. The below error appears in the Apache error log, once SELinux is set to enforcing, but no alerts are logged to audit.log. [wsgi:error] import psycopg2 as…
Kevin
  • 314
  • 4
  • 9
2
votes
1 answer

Apache not serving my python app

So here's my apache config: LoadModule wsgi_module /usr/lib/apache2/modules/mod_wsgi.so ServerAdmin marijus.merkevicius@gmail.com ServerName 31.220.49.197 WSGIDaemonProcess ts threads=25 …
Marijus
  • 121
  • 1
  • 5
2
votes
0 answers

Configuring mod_wsgi daemon mode processes and threads

I am planning to use mpm_worker or mpm_event with daemon mode of mod_wsgi. How to configure processes and threads of WSGIDaemonProcess directive for the optimal performance of apache 2.4.9
eldos
  • 241
  • 2
  • 5
2
votes
2 answers

Setup Apache + mod_wsgi: incorrect function

I'm trying to setup an apache http server with mod_wsgi on a windows machine, but when I start the service, it fails to launch. In the Windows Event Log I get the following message: The Apache2 service terminated with the following service-specific…
2
votes
2 answers

mod_wsgi, .htaccess and rewriterule

I'm using several django projects running on the same apache instance through mod_wsgi, configured with virtualhost for each site, see the httpd.conf here. For one of the sites I want to use static-cache (staticgenerator), so I set up a directory…
user19328
2
votes
1 answer

Does mod-wsgi automatically spin up again when apache restarts?

I was reading through here: https://code.google.com/p/modwsgi/wiki/ReloadingSourceCode We have a python app hosted over a wide array of load-balanced servers, and sometimes it takes a long time for a request to come into a server that has a low…
cbron
  • 123
  • 3
2
votes
2 answers

What are the problems of setting MaxRequestsPerChild to 1 of mpm_prefork module

For my application I had to have this configuration for it works : MaxRequestsPerChild 1 What are the problem that I can encounter with this configuration.
Hunsu
  • 123
  • 5
2
votes
2 answers

We have nginx proxying to apache w/mod wsgi and very high server load, how to track down cause?

We have an nginx instance sitting in front of apache 2 (nginx handles static resources, dynamic content requests get proxied to apache) which is primarily using mod_wsgi to server various python/django apps. We have suddenly seeing a high server…
2
votes
1 answer

Is graceful restart of Apache forcing to reload all python modules handled by mod_wsgi?

If I want to be sure that all python modules are recompiled and reloaded in my Django project under mod_wsgi and Apache, is it enough to restart apache gracefully with: /etc/init.d/apache graceful or should I always do the full restart…
Aidas Bendoraitis
  • 1,465
  • 2
  • 14
  • 17
2
votes
1 answer

Why does httpd seem to use a different version of python with the same executable?

I am running Apache httpd 2.4.4 on a RedHat 5 machine. I am using Django and running through mod_wsgi. I have Python 2.4.3 installed in /usr/bin and Python 2.7.6 installed in /usr/local/bin and I want to use 2.7.6. I build the 2.7.6 from source and…
Graeme Perrow
  • 555
  • 1
  • 4
  • 16
2
votes
1 answer

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 'hub.settings' (Is it on sys.path?): No module named…
Tim
  • 23
  • 1
  • 3