mod_wsgi is an easy to use Apache module that can host Python web applications which support the Python WSGI interface.

learn more… | top users | synonyms

1
vote
1answer
9 views

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 ...
0
votes
0answers
25 views

Apache periodically shutting down once per week

I'm using apache (with mod_wsgi and django), and everything works fine, except rather strangely once per week apache seems to shutdown, and I have to login to the server to restart it to get my sites ...
2
votes
1answer
24 views

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

mod wsgi picks up wrong libpython2.7.so.1.0

I've compiled python 2.7.8 with: mkdir -p /usr/local/python2p7/lib ./configure --prefix=/usr/local/python2p7 --with-threads --enable-shared LDFLAGS="-Wl,-rpath /usr/local/python2p7/lib" make make ...
0
votes
0answers
47 views

Server configuration in production for Django applications

I want to deploy my Django project to production as follows: example.com # redirect to www www.example.com # for dynamic files static.example.com # for static files media.example.com ...
0
votes
0answers
43 views

Serving static files through apache

I am new to the whole mod_wsgi and serving files through apache. I am really comfortable with flask but this is something i can't get my head around. I did the hello-world program and successfully ...
0
votes
1answer
17 views

configured apache to host pyramid app, but restarts dont show changes

I have a pyramid application that I want to host using Apache. I started off by sucessfully getting a blank application to run - I used pyramid's starter scaffold to create a basic app then I ...
0
votes
0answers
20 views

Serving two WSGI applications on the same port using Apache

I need to configure an Apache webserver so that it will serve two different WSGI based applications on the same port (I have access to just a single port, namely port 80). On the users end they should ...
2
votes
2answers
116 views

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 : <IfModule mpm_prefork_module> MaxRequestsPerChild 1 </IfModule> What are the problem that I can encounter with ...
0
votes
1answer
43 views

Configuring Apache with Django

I'm trying to configure Apache with Django. Everything is working except the admin panel. It's static files are not loading. The documentation talks about different ways of doing it but none are ...
0
votes
1answer
68 views

Django, Ubuntu, Apache, mod_wsgi

I'm trying to configure apache with django on Ubuntu 12.04. I'm using mod_wsgi. I used a couple of different tutorials but none of them fully worked for me. Frustrated, I installed nginx without ...
0
votes
1answer
43 views

Apache and mod_wsgi, worker process stuck to W state, request never dies. How to diagnose?

I am running Apache 2.2 with mod_wsgi, Python 2.7 and mpm_worker. Occassionally, one of the worker processes gets stuck and all of it threads stop in writing state (as demostrated in the screenshot ...
0
votes
1answer
50 views

Error starting mod_wsgi

When I run the start-server command on mod_wsgi-experess, I get this output: Server URL : http://localhost:8000/ Server Root : /tmp/mod_wsgi-localhost:8000:0 Server Conf : ...
0
votes
1answer
116 views

Multiple python versions under apache+mod_wsgi

I have several virtual hosts configured under the same apache instance on redhat: apache-2.2.15 mod_wsgi-3.5 compiled with default system python-2.6 For every virtual host WSGIScriptAlias setting ...
1
vote
1answer
161 views

Tuning django based site deployed using apache wsgi for better performance

I'm running django application using apache+mod_wsgi, I have setup 6 medium ubuntu servers on Amazon ec2 in which 2 for mongo and 4 for django and apache, using ebs for postgresql and configured a ...
0
votes
2answers
300 views

Enabling SPDY for nginx as reverse proxy to Apache

I am running nginx as a reverse proxy to apache (with mod_wsgi for a django app). nginx also serves static files. If I enable spdy on nginx, do I need to enable spdy on apache too to get maximum ...
0
votes
3answers
183 views

Apache: 403 Forbidden for WSGIScriptAlias

I am trying to install istSOS following these instructions from the website: Installation Install PostgreSQL $ sudo apt-get install postgresql postgresql-client postgresql-contrib pgadmin3 ...
0
votes
1answer
46 views

How to configure Apache with mod_wsgi so that error messages come from the application?

I have deployed a WSGI application in Apache2 with mod_wsgi. The application is made so that it responds with a 400 response code if the data provided by the user in a form is invalid. The ...
0
votes
1answer
35 views

Apache CustomLog for WSGI server is not filtered by LogLevel

I have a WSGI server which is served by an Apache proxy. I would like to have a log file dedicated to that server, so I added the following to the VirtualHost declaration: LogFormat "%h %l %u %t ...
1
vote
1answer
135 views

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

How do I tell what request a mod_wsgi process is serving?

Occasionally, I get an apache process running at 100% CPU. I've tried letting it run it's course, but I've seen it go more than half an hour without giving up. My running hypothesis is there is an ...
0
votes
1answer
181 views

Apache Processes in top more than MaxClients

We have Apache running with the worker MPM and have MaxClients set to 6, yet when I open up top I can see more than 6 Apache processes running. 13 visible in the screen dump below. Can someone explain ...
1
vote
1answer
320 views

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

Using Apache to make a virtual host with the same domain name?

I'm sure there's a name for this and I'm probably just searching wrong. Anyways, is it possible to set up virtual hosts on the same domain name by using information after the '/' For example host1 ...
0
votes
1answer
46 views

Need Server requirement estimates for my application [duplicate]

I am a newbie to Web Development and am trying to estimate the server requirements based on my application configuration. My application will have to perform simple database look-up based on unique ...
0
votes
1answer
461 views

How can I make apache give the config file path and line number for a 403 error

I'm running Apache 2.4.7 on debian unstable. I'm getting 403 errors when I try to run supysonic using the mod_wsgi module. I turned the LogLevel for wsgi and authz_core up to trace6, but I'm still ...
2
votes
1answer
216 views

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

Target WSGI script not found or unable to stat [closed]

This problem has tortured me for days. I am using Apache, WSGI and django on my Raspberry Pi. Operating system is Raspbian. Everything is okay except this error from apache. [error] [client ...
1
vote
1answer
190 views

Django WSGI application in a subdirectory?

Recently, I wanted to put one of my WSGI applications into a subdirectory, so that the other directories that cointain various scripts would work as before. In order to do that, I added the following ...
3
votes
1answer
186 views

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: ...
1
vote
0answers
268 views

Apache bloodhound installation, AWS host not serving site

Following the installation instructions here I went through the entire process on an AWS instance. Everything seems to be setup correctly, I can even run BH off the development server using: tracd ...
0
votes
1answer
141 views

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

How to have PHP and mod_wsgi python app on the same domain?

I am using apache with mod_wsgi (python3) on ubuntu 12.04. I have a python app (bottle) which is at www.mysite.com/ In my python app I have routes like www.mysite.com/abbb?q=blab I would like a ...
1
vote
1answer
280 views

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 ...
0
votes
2answers
97 views

How to choose a web server for a Python application? [closed]

Information and prerequisites: I have a project which is, at its core, a basic CRUD application. It doesn't have long running background processes which it forks at the beginning and talks to later ...
0
votes
2answers
357 views

Configure mod_wsgi WSGIScriptAlias with mod_rewrite

I want to redirect ex.com to www.ex.com but I still want www.ex.com/ to point to my app.wsgi without it showing up in the url. When I use the conf below and I go to ex.com, I get a 404 error saying ...
-1
votes
1answer
666 views

Permission denied error while creating files from a python script using mod_wsgi on apache

I'm running a python script under mod_wsgi on apache. The script attempts to create some files under a directory. The path of that directory is defined by this variable named tmpdir in the script. ...
0
votes
0answers
55 views

Messed Up Virtual Hosting After Installing Django with mod_wsgi

I was tasked with setting up Django, which seemed to require mod_wsgi, on an Ubuntu server fairly recently, which I was able to get working through much ardor and trial and error. Unfortunately, I ...
0
votes
2answers
32 views

Check apache modwsgi reload is working correctly

I deployed a application a while ago and it is currently in production. I learned about and attempted to set up code reloading. I read and followed the documentation. and now I'm looking for a way to ...
1
vote
0answers
304 views

mod_wsgi ImportError with a flask app

I'm trying to deploy a Flask app using apache and mod_wsgi. I've been following the directions here. The simple hello-world example that is on that site works perfectly. When I try to substitute my ...
0
votes
0answers
61 views

Why does Apache on mod-wsgi throw random 500s

I run a Django Piston on Apache 2.4 + mod-WSGI. I use one of those URLs to post(yes, its a POST of a few kibs) stuff from localhost. But I face random 500s. The Django logs indicate the request ...
0
votes
1answer
30 views

Apache and mod_wsgi prevent user from viewing source

I'm running a WSGI application written in Python with flask on Apache. I have so far configured my vhost correctly to use my application. <VirtualHost *:80> ServerName mydomain.com ErrorLog ...
1
vote
0answers
52 views

Soccorro server does not work

I tried to configure Socorro server with apache as described here. I started httpd, but when I contact it with browser it doesn't respond. In lynx I get: HTTP request sent; waiting for response. When ...
0
votes
0answers
54 views

WSGISocketPrefix is set but still permission denied

I have set WSGISocketPrefix /var/run/wsgi in apache.conf And in my virtual host config WSGIDaemonProcess myuser user=myuser group=myuser threads=25 python-path=VIRTUAL_ENV_PATH WSGIProcessGroup ...
0
votes
2answers
122 views

ubuntu linode server 404 error with django mod_wsgi [closed]

I have configured a linode server with apache2 and mod_wsgi.. the server is running wsgi is running postgre is running and syncdb was successful what I am having trouble finishing is actually ...
1
vote
1answer
103 views

Apache2/mod_wsgi mod_headers issue

I'm running mod_wsgi on Ubuntu Server 12.04 with Django, but I can't seem to get mod_headers working. I've run a2enmod headers, and got the response that I need to restart apache for it to work, which ...
1
vote
2answers
144 views

django + apache2, each user takes up a lot of memory

I'm running my django app on apache2 (with mpm prefork) with a mysql database. It works fine, except when multiple users use it, and it takes around 40-45m RES for each user. httpd.conf: ...
0
votes
1answer
49 views

Issue configuring Apache virtualHost with modwsgi

Hello i have a problem configuring apache with Virtualhosts and ModWSGI, see i want to run a Python Script when i access to the domain, but it keeps showing me the content of my folder instead ...
1
vote
1answer
120 views

Non-responsive apache + mod_wsgi after installing scipy

I am currently running a Centos 6.4 server, with Apache 2.2.15 and mod_wsgi 3.2. The server is hosting a django-based site (django 1.5.1, python 2.6.6). Everything was running fine until I installed ...
0
votes
2answers
183 views

Files over 100kb not served using, nginx proxy, apache, mod_wsgi

Files over 100kb not served using, nginx proxy, apache, mod_wsgi We are in the process of migrating a site to a new server. We have the site with virtualenv set up, apache modwsgi is installed and ...