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
1
vote
2 answers

How may I know the amount of memory used by each one of my apache sites?

When I run ps aux I get the following process table http://pastebin.com/NJsASBek that shows how much memory is being used by each one of the subprocess. We can see apache proceess are shown like this: www-data 26487 0.0 0.9 245476 14920 ? Sl 17:32…
quarry32
  • 255
  • 2
  • 11
1
vote
1 answer

Django error saying "could not connect to server: Permission denied"

I am getting an error trying to visit my Django app. I am running Gentoo and the web server is Apache with the mod_wsgi module to display Django. The error says OperationalError at /admin/ could not connect to server: Permission denied Is the server…
hobbes3
  • 615
  • 2
  • 10
  • 23
1
vote
1 answer

Enabling mod_wsgi in Apache for a Django app on Gentoo

I installed Apache, Django, and mod_wsgi on Gentoo using emerge (on Amazon EC2). I know that the mod_wsgi is configured in /etc/apache2/modules.d/70_mod_wsgi.conf: LoadModule wsgi_module modules/mod_wsgi.so # vim: ts=4…
hobbes3
  • 615
  • 2
  • 10
  • 23
1
vote
1 answer

Can one rely on Apache sanitizing URLs?

I set up Apache with mod_wsgi in a default installation, with a very simple test application test.wsgi that goes like this: def application(environ, start_response): status = '200 OK' output = 'Path: %s' % environ['PATH_INFO'] …
Niklas B.
  • 214
  • 1
  • 2
  • 9
1
vote
1 answer

"AUTHENTICATE_"environment variables missing in Apache + LDAP authentication

According to the Apache 2.2 documentation, after a successful authentication against Active Directory the LDAP attributes specified in the AuthLDAPUrl directive should be available as environment variables with the default prefix…
alexandrul
  • 1,435
  • 2
  • 19
  • 25
1
vote
1 answer

Installing and running two versions of mod_wsgi in Apache

I'm trying to setup Python3 and Python2 via mod_wsgi on Ubuntu, so I've installed the mod_wsgi_py3 package but also wish to run the py2 version and have it switched depending on a flag within the virtualhosts config. Is there any way to do this…
Marco Ceppi
  • 457
  • 3
  • 19
1
vote
1 answer

Server returning response for previous requests

It's a really strange problem. I believe it to be a server issue, but it's so strange and hard to reproduce that I'm not entirely sure. Just as the title says I'm receiving responses for earlier requests. And not just from the same client. I'm…
modfrq
  • 11
  • 1
1
vote
1 answer

Redirecting through httpd.conf with Django and mod_wsgi

I am trying to use Apache's Rewrite module to redirect users before Django catches the request. I tried the following to redirect a user from "test.php" to the "links" page WSGIDaemonProcess mydomain.com processes=1…
James
  • 11
  • 2
1
vote
1 answer

How do you implement mod_wsgi on web servers?

All of the documentation I've seen outlines the process for self-managed Apache configuration. I currently have my site hosted through Media Temple. Is it possible to configure WSGI for these types of hosting providers? The only form of Python…
chrisboulas
1
vote
2 answers

Apache virtualhost - only apply script if file does not exist in document root

Sorry for the newbie apache question. I'm wondering if it's possible to set up the following non-conventional apache virtualhost (for a Django app): -- If a file exists in the DocumentRoot (/var/www) it will be shown. So if /var/www/foo.html…
Brett Thomas
  • 143
  • 3
1
vote
0 answers

Django - can't get production web server running

I'm trying to deploy a Django app in production, on an apache server, using mod-wsgi. mod-wsgi is installed and working fine. When I run the Django server, it launches fine, but I can't access it on the server or online, and I don't understand why.…
ankit
  • 123
  • 6
1
vote
1 answer

Set default number of mod_wsgi processes

I have a virtual host setup with the follow config directive. WSGIDaemonProcess myproject processes=2 threads=25 I would like to set the number of processes for each vhost using mod_wsgi to 2 without having to set it in each virtual host. How do I…
Kenzic
  • 111
  • 1
1
vote
1 answer

Apache showing "Python version mismatch" with mod_wsgi

I am trying to get web.py working. I have compiled mod_wsgi to use python2.6, and configured my virtualhost correctly (at least I am pretty sure it is!). The hello, world application keeps showing up as 404. I changed the loglevel of Apache to info.…
Thomas Thorogood
  • 211
  • 2
  • 13
1
vote
2 answers

Django and WSGI and Apache2-- site is perfect in test server, won't load with Apache

OK I don't what I'm doing wrong here. I have a Linode VPS running Ubuntu. I installed Django 1.3, Apache2, and mod-WSGI. I created my (extermely simple) website, slapped in some images, have a CSS sheet, have a favicon.ico and it works beautifully…
Garfonzo
  • 499
  • 2
  • 18
1
vote
2 answers

mod_wsgi and mod_php running together - possible?

Is it possible to run apache with mod_wsgi and mod_php running together to serve python and php pages? If so where can I find info on doing this?
aburger
  • 11
  • 2