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

Can I configure apache/mod_wsgi so that the Alias URL path is not stripped before it reaches my Django app?

I am trying to configure Apache to host a Django webservice and a PHP website. All URLs with the pattern www.mysite.com/api should be directed to the Django service. All other URLs (e.g. www.mysite.com) should be directed to the PHP website. My…
2
votes
1 answer

apache pointing to the wrong version of python on ubuntu how do I change?

I am setting up a flask application on and Ubuntu 12.04.3 LTS EC2 instance and everything seemed to be working well (i.e. I could get to the webpage via the publicly available url) until I tried to import a module (e.g. numpy) and realised the…
one
  • 135
  • 1
  • 7
2
votes
1 answer

Django mutli-threading on apache/mod_wsgi/windows

I am quite new to the combination of apache and django and quite naive frankly regarding to how multi-threading is handeled. Specifically I run on a windows server, so I know the MPM is only thread-based. I have an application which serves a…
Ilan lewin
  • 123
  • 1
  • 3
2
votes
2 answers

Kernel 3.8, Apache2 with WSGI : INFO: task apache2 blocked for more than 120 seconds

We have upgraded our Kernel from 2.6.32 to 3.8.7 on a Debian system. We have a sharing with NFS to get the data for Apache2. And Nginx serves only static files as a proxy. Since we have installed the Kernel 3.8.7, the load average sometimes grows…
Acti67
  • 121
  • 1
  • 4
2
votes
0 answers

WSGI/APACHE - “ImportError: No module named site”

I am trying to get a django website up and running using WSGI. The box is running centos 5 with python 2.6. I am attempting to use the anaconda distribution from continuum analytics installed in /usr/local/lib/anaconda/. I built mod_wsgi with…
Michael WS
  • 121
  • 4
2
votes
1 answer

Causes of crash doing matrix multiply in Python/mod_wsgi/apache app

I am building a web app using Python 2.7, its bottle micro framework, and apache (via mod_wsgi). This app has some RESTish endpoints, one of which results in a connection error in the browser (Firefox shows "The connection was reset" while Opera…
2
votes
3 answers

To know whether my Uni can run Python web applications

I am completing my first database project. I am going to set up mod_wsgi to Apache such that I can run Python webframework on my Uni's servers. I am not sure whether my Uni has those tools or not. My Uni gives me no support in Python and its config…
2
votes
2 answers

Configuring mod_wsgi to use Python 2.7

I am trying to configure mod_wsgi to use Python 2.7. I downloaded and unpacked the source and ran ./configure --with-python=/usr/local/bin/python2.7 After this mod_wsgi.so-2.4 and mod_wsgi.so-2.5 appeared in /usr/lib/apache2/modules. I restarted…
chernevik
  • 725
  • 3
  • 10
  • 19
2
votes
1 answer

Getting error while install mod_wsgi on centos6.3 with python 2.7

In initially installed yum install mod_wsgi and i think it was linked with python 2.6 Now is there any way to link it with 2.7 I tried configuring from the source and i get this error apxs -c -I/usr/local/include/python2.7 -DNDEBUG mod_wsgi.c…
Mirage
  • 561
  • 4
  • 10
  • 25
2
votes
0 answers

Error importing python modules in mod_wsgi

We are trying to get out wsgi application working on mod_wsgi. We have run it before using wsgiref.simple_server, as a debugging environment. Now, we want to move it over to using Apache httpd to integrate with loading static files under the same…
Juan Carlos Coto
  • 677
  • 2
  • 6
  • 13
2
votes
3 answers

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 generated by the Django (WSGI) app, which causes a high…
2
votes
2 answers

Location Directive overrides mod_wsgi script alias mount

So I'm stymied. I have a webapp that uses Django and I'm using mod_wsgi to integrate it with apache. However, another person has a directive on the same machine that proxies to another server. The apache config is roughly: My App WSGIScriptAlias…
Rokujolady
  • 131
  • 2
2
votes
2 answers

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 of /etc/httpd/conf/httpd.conf: Can't locate API…
a coder
  • 789
  • 4
  • 20
  • 38
2
votes
2 answers

Python: ImportError: No module named os

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 libpython2.5.so.1.0 =>…
Kreshnik
  • 145
  • 1
  • 3
  • 9
2
votes
1 answer

Apache2: mod_wsgi and passenger do not get along

I'm trying to run an instance of apache2 on an ubuntu server with two virtual hosts. One for redmine(phusion passenger), and one for ReviewBoard(mod_wsgi). I haven't created a single server configuration that will allow both of them to be available,…