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

Mime Magic on files without extension on Apache/2.2.31 and mod_wsgi 3.4

Sorry in advance for the length, thanks for your patience. I have an ancient production server that no one knows how it was built. It uses apache+mod_wsgi to run a Cherry Py python application to serve images. I'm recreating it to document it and…
1
vote
2 answers

Starting all mod_wsgi processes

mod_wsgi processes seems to be lazily started i.e. on request. However, I prefer to start all the processes from the beginning because the process start up time is long. Is there a configuration option for this? or a way around it? Here is the…
Mark
  • 25
  • 1
  • 5
1
vote
3 answers

Reloading mod_wsgi processes safely in production

Is there a way to safely restart mod_wsgi processes on demand, possibly running on multiple machines? I'm serving a django app with mod_wsgi in daemon mode with apache: WSGIDaemonProcess myapp user=user group=user processes=30…
Mark
  • 25
  • 1
  • 5
1
vote
0 answers

Apache ignores WSGIScriptAlias if same directory exists in root

I notice a peculiar error when serving Django app through mod_wsgi. In my document root, I have /admin directory that is restricted to 127.0.0.1 using LocationMatch directive. I also have /admin URLConf mounted on / in Django app, which is standard…
Red
  • 133
  • 5
1
vote
1 answer

CentOS 7 / Apache / mod_wsgi - UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 2727: ordinal not in range(128)

I've deployed a Python web application (uses Pyramid) in Apache (httpd) using mod_wsgi. After starting the Apache service the error below (from Apache log) occurs when we make a http request to the web application... [Mon Feb 06 16:38:55.980119…
Eduardo Lucio
  • 269
  • 4
  • 14
1
vote
1 answer

Apache with mod_wsgi - how to reject requests if all threads are busy?

We have a server that is running Apache and one of the vhosts is using mod_wsgi to run a heavy task on request. The server can handle X requests at a time and each of them will run for ~10 minutes. Rather than making new clients wait if all threads…
Niko
  • 61
  • 3
1
vote
1 answer

Which is Best way to serve multiple wsgi apps using apache2 with different python versions?

Right now I've got a python2 django app deployed in my sever using apache2 and mod-wsgi. Now I want to deploy another one, but this is written in python3. My problem is that mod-wsgi is compiled to python2. What are my alternatives to do the deploy?…
Liam
  • 241
  • 4
  • 10
1
vote
1 answer

Django 1.10.3 Apache wsgi - ImportError: cannot import name signals

Overnight django stopped working, possibly because of an automatic package upgrade on the server. Its wsgi script now fails to load in production, but running the development server works fine. What might cause the following error? mod_wsgi…
frankster
  • 121
  • 5
1
vote
1 answer

Apache 2.4 with mod_wsgi: 403 Forbidden, don't have permission to access /calbase on this server

So I am trying to deploy my django project on a windows server, using apache 2.4 with mod_wsgi and pythong 3.4. Before I configure httpd.conf and just try start apache with mod-wsgi installed, it works and show me that "it works" page. then I did…
lhsdaniel
  • 11
  • 1
  • 2
1
vote
1 answer

Compiling mod-wsgi - How to install python3-devel on centos-6.8

I'm trying to deploy Django-1.10 on Centos-6.8 using default apache in centos(version 2.2). I'm using python 3.4.5.I'm not able to compile mod-wsgi without python3-devel. Centos-6.8 repos doesn't have python3-devel packages by default.I need help in…
sid
  • 11
  • 1
  • 3
1
vote
1 answer

Serving Flask + Apache + WSGI Behind Sonicwall

Strange problem here. I've gone through this tutorial on setting up a deployment environment for a Flask app. When I navigate to the servers local IP address it is serving everything fine. However there is a problem serving the Flask/Python logic…
xGlorify
  • 11
  • 3
1
vote
1 answer

Flask with python 3.5

I'm trying to run a flask app on my aws ec2 instance. I've installed anaconda with python 3.5. In order to install mod-wsgi I run the following command: sudo yum install libapache2-mod-wsgi python-pip git The result was that a lot of python 2.6…
Nickpick
  • 145
  • 8
1
vote
0 answers

Django Site with httpd and mod_wsgi: 403 Forbidden

I've spent the whole day trying to find an answer to my issue, yet I failed and decided to post my problem here instead. So I have develop a Django Application and now I'm having problems in deploying it to an apache (httpd) server. I'm currently…
Dudu
  • 11
  • 3
1
vote
0 answers

urllib3 failure through Apache/WSGI; successful from python commandline

I have a webserver serving Django through Apache 2.4 with mod_wsgi and Python 2.7 on Ubuntu 14.04. When first setup, outgoing connections from this webserver using the Python library urllib3 were successful. Currently, outgoing connections using…
garromark
  • 910
  • 9
  • 9
1
vote
3 answers

Why is method that uses gevent in a mod_wsgi deployed Flask api raising error about switching threads?

I am trying to deploy a Flask api via Apache/mod_wsgi. The api uses Gevent to provide concurrency for a recursive method. However, it is throwing the following error [Mon Feb 08 12:05:37 2016] [error] error: cannot switch to a different thread [Mon…