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

How to make mod_wsgi use Python 3.9?

I originally had Python 3.6 installed and working well with WSGI and Apache2 on my Linux server. Then I created a Flask app that had a dependency needing Python 3.7. I've successfully (and I think) upgraded to Python 3.9. Running python3 or sudo…
ThatCoolCoder
  • 193
  • 1
  • 7
5
votes
2 answers

504s on Elastic Beanstalk app deploy (user -> ELB -> Elastic Beanstalk mod_wsgi)

I have a Python Elastic Beanstalk load-balanced app. Here is the path a user request takes on its way into the Elastic Beanstalk app: user -> Elastic Beanstalk ELB -> Elastic Beanstalk mod_wsgi The problem: The first ~2-4 requests from user after…
5
votes
1 answer

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 is pointed to the python file where the virtual…
alecxe
  • 81
  • 1
  • 2
  • 16
5
votes
3 answers

Apache won't restart after inserting mod_wsgi

Python interested me as a web scripting language so I wanted to set it up on my testing server. Cannot get Apache to restart with mod_wsgi. Running xampp v win32-1.8 w/apache v2.4, python v2.7 32bit, on win7 64bit. The registry files I see for…
chris
  • 51
  • 1
  • 2
5
votes
4 answers

Make mod_wsgi use python2.7.2 instead of python2.6?

i am running Ubuntu 10.04.1 LTS and it came pre-packed with python2.6 but i need to replace it with python2.7.2. (The reason is simple, 2.7 has a lot of features backported from 3 ) i had installed python2.7.2 using ./configure make make…
guron
  • 51
  • 1
  • 1
  • 2
5
votes
2 answers

Error installing mod_wsgi in centos with python2.7

When i do "make" in mod_wsgi folder i get this error I configured using following ./configure --with-apxs=/usr/local/apache/bin/apxs --with-python=/opt/python27/bin/python /usr/bin/ld: /opt/python27/lib/libpython2.7.a(node.o): relocation…
Mirage
  • 561
  • 4
  • 10
  • 25
5
votes
2 answers

wsgi and python print statements

I have become aware that the print statements in my django app are causing wsgi to error and fail. Without going over all my code and removing/commenting out the print statements, is there a way I can disable them when running wsgi. It needs to be a…
Designer023
  • 193
  • 1
  • 1
  • 8
5
votes
1 answer

Directory, Proxy and Location - how to co-exist in one Apache configuration?

Mostly through trial and error I have created the Apache configuration file below. It aims to allow a server on localhost:8002 and a trac server via WSGI to share an LDAP server and appear to be on the same domain/port. The rules work in isolation,…
Jon Hadley
  • 305
  • 2
  • 7
  • 20
5
votes
2 answers

Broken URL rewriting on Django/modwsgi setup

I am trying to setup my Django app to run under Apache with modwsgi. I have defined the following virtualhost: ServerName www.domain.com ServerAlias domain.com WSGIScriptAlias / /home/domain/apache/django.wsgi …
user31196
4
votes
1 answer

Apache mod_wsgi installation error

I'm running CentOS 6.7, I'm trying to install mod_wsgi (https://code.google.com/p/modwsgi/) Normally I'd just do: yum install mod_wsgi But since I need to make sure it compiles under Python 2.7 (as opposed to CentOS default Python 2.6 version), I…
Jorg Ancrath
  • 249
  • 4
  • 9
4
votes
0 answers

mod_wsgi End of script output before headers

I have a problem with my web application. Sometimes when people upload an image (seems to happen with large image only), I have mod_wsgi who crash with this message : End of script output before headers: wsgi.py, referer:http:::... Process 'wsgi'…
trnsnt
  • 133
  • 2
  • 6
4
votes
1 answer

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 not getting any useful messages. Note that I'm…
4
votes
1 answer

Restrict WSGI based on IP

So I have trac running on my debian server with the VirtualHost file looking like: ... WSGIScriptAlias / /srv/domain/trac.wsgi WSGIScriptReloading On WSGIApplicationGroup %{GLOBAL} Order deny,allow Deny…
ingh.am
  • 273
  • 3
  • 15
4
votes
2 answers

How can I run two Django versions in the same server?

i've got two web apps. One was developed using Django 1.0 and the other using Django 1.4. How can I run both apps in the same apache2 server using two versions of django? Somebody told me something about virtualenv ... I'm using mod_wsgi. Thanks
Liam
  • 241
  • 4
  • 10
4
votes
1 answer

Apache2 mod_wsgi django Named Virtual Servers

I'm trying to set up two seperate django sites using mod_wsgi on apache. The first site is working fine, but the second site cupaday.dyndns.biz is giving a 403: [Tue Feb 07 22:32:57 2012] [error] [client 68.48.6.208] (13)Permission denied: access to…
dm03514
  • 201
  • 1
  • 3
  • 12
1
2
3
26 27