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

Mod_WSGI 6X Slower Than Django Development Server

I've been trying to figure why my Django Development Server is running 6-10x faster than mod_wsgi (which is supposed to be faster). I believe it must be restarting the Django process between requests, even though it shouldn't be until it hits it's…
bundini
  • 263
  • 2
  • 9
1
vote
2 answers

wsgi - narrow user permissions

I have following Apache configuration and my application is working fine: ServerName ig-test.example.com WSGIScriptAlias / /home/ig-test/src/repository/django.wsgi WSGIDaemonProcess ig-test…
1
vote
1 answer

Trac causes RuntimeError: instance.__dict__ not accessible in restricted mode

I have the below Apache configuration. The following services are on each port: 8022 - Apache. Testing port, in the long run it will be port 80. 8002 - XDV, a themeing proxy which sits in front of a number of other services. 8202 - Trac,…
Jon Hadley
  • 305
  • 2
  • 7
  • 20
1
vote
2 answers

Windows + Django + mod_wsgi = "DLL load failed"

For a long time I was using Python 2.5 to do all this fine but recently upgraded to 2.7 since building stuff for 2.5 is a real pain. I also updated mod_wsgi to 3.3 for Python 2.7. Everything is working fine with Apache + mod_wsgi on CentOS and also…
Kyle MacFarlane
  • 807
  • 2
  • 9
  • 12
1
vote
2 answers

What's a good way to run Apache/mod_wsgi or similar environment on Windows Server 2003?

I need to set up an Apache instance on a windows box we have. I'm running a Python/Django application, and mod_wsgi is preferable so that I can restart individual applications. I do, however, need to run it under Windows. Apache just doesn't seem…
Jason Baker
  • 1,229
  • 6
  • 20
  • 26
1
vote
1 answer

Authorisation in mod_wsgi

I have the following setup, WSGIScriptAlias /i C:/Project/Scripts/hello.wsgi WSGIScriptAlias /hello C:/Project/Scripts/hello.wsgi Order deny,allow Allow from all AuthType Basic …
Filipe Pinheiro
  • 157
  • 1
  • 7
1
vote
1 answer

django wsgi multiple projects different url same apache server

I'm trying to get 2 separate django projects running on the same apache server with mod_wsgi that are also under the same domain but different urls. Like www.example.com/site1/ and www.example.com/site2 What I'm trying to do is something…
Thomas Schultz
  • 115
  • 1
  • 7
1
vote
1 answer

mod-wsgi with pylons on apache with preload?

Is there a way to get this working with preload? mod-php5 requires preload.
Tim
  • 229
  • 3
  • 8
1
vote
1 answer

How to install mod_wsgi 3.1 on Ubuntu 9.10

I have a Python 3 web app so mod_wsgi < 3.1 doesn't cut it for me. However, on my Ubuntu 9.10 installation there doesn't seem to be a package for mod_wsgi 3.1. Is there an alternative repository that has a package for mod_wsgi 3.1? There's a new…
pthulin
1
vote
1 answer

Why does Apache with mod_wsgi force a download of .py files instad of executing them?

Why does Apache with mod_wsgi force a download of .py files instead of executing them? I'm trying to run Django, but the first issue I have is .py files not executing. I'm following the docs here…
BlueDogRanch
  • 143
  • 1
  • 2
  • 9
1
vote
1 answer

Running multiple flask applications with different domain names using mod_wsgi

We are trying to run 2 different flask applications with different domain names from same server using mod_wsgi + Apache2. This is the settings configured in httpd.conf # For www.yyy.com WSGIDaemonProcess yyy python-path=/var/www/yyy WSGIScriptAlias…
1
vote
0 answers

Determining which Mercurial version which created a repository

I have a rather large Mercurial web server (ie. running under hgweb.wsgi) that's outgrown the distribution it was built-on... which basically means that I've already started doing upgrades of Python, Apache, OpenSSL, mod-wsgi, and Mercurial (among…
RVT
  • 397
  • 1
  • 8
1
vote
0 answers

Unsuccessful flask app deployment on Amazon EC2 instance

I am trying to deploy a flask app on an Amazon EC2 instance. I have configured everything just fine but the website does not load. It remains stuck on the loading icon as follows: Website not loading Even the logs dont show any error: Apache…
1
vote
0 answers

How to debug my config file for wsgi

I am trying to install a server for inginious (a program for automatic grading). One step in the installation is configuring Apache2 to use mod_wsgi. Here is the configuration file inginious.conf: LoadModule wsgi_module…
1
vote
2 answers

How to enable/load mod_wsgi in apache server in centos 8 VPS

I am not able to enable/load module mod_wgsi in apache webserver in cent os 8 VPS. It works very easily in ubuntu by running the command sudo apt install libapache2-mod-wsgi-py3 Please Help me getting set up apache for django in centos 8 by letting…