Questions tagged [mod-wsgi]

The mod_wsgi module is a python WSGI adapter module for Apache.

The mod_wsgi module is a python WSGI adapter module for Apache. For details on the official channel for getting mod_wsgi help, see http://modwsgi.readthedocs.io/en/develop/finding-help.html.

3241 questions
1
vote
1 answer

Fixing request entity too large error under django/apache/mod_wsgi for file uploads

I after much gnashing of teeth found out my uploads were working just that I was getting a request entity to large 413 error I wasn't seeing. The django app is running under apache mod_wsgi, and I am no apache guru so i am not sure what I need to…
Codejoy
  • 3,722
  • 13
  • 59
  • 99
1
vote
2 answers

Changes to Django Context not showing in template

I have a template that has variables printing from a Context that I created in a view. It has been working perfectly for a couple of months. I have added some new variables to the context, but they won't show up in the template. When I run the…
ukalumni
  • 49
  • 4
1
vote
2 answers

Django static files do not display in production server. How can I map them correctly, so I can see the admin GUI

I am running a django project off of an Ubuntu Server 14.04, the web page is up and running, however when the page loads, there is no CSS, or format at all, it just looks like plain HTML. I know for sure that the admin page has a style and…
M. Barbieri
  • 512
  • 2
  • 13
  • 27
1
vote
2 answers

How to deploy django app with apache and mod_wsgi so I can see the website when I type in server's address?

I am trying to deploy an existing django app that is running on my Ubuntu Server 14.04. Everything works on localhost from the server, but I have no idea how to link the server's IP address to the django app that I want. I have read countless…
M. Barbieri
  • 512
  • 2
  • 13
  • 27
1
vote
4 answers

Configure python path using mod_wsgi

I am trying to set up a simple flask app on an ec2 instance with apache2 server and mod_wsgi. Seem to be having disproportionate amount of diffculty configuring the correct python path for mod_wsgi to use. I have placed code snippets below. The…
Mike Dale
  • 61
  • 1
  • 2
  • 7
1
vote
0 answers

Installing mod_wsgi module for Apache 2.4

I have a Python Flask-restful app. I want to serve it through the Apache server instead of the development server. I have the following in http.conf file: ServerName batch-autoscaling-algos WSGIDaemonProcess…
kosta
  • 4,302
  • 10
  • 50
  • 104
1
vote
3 answers

Apache is slow with concurrent requests

I currently have apache running with web2py on windows using mod_wsgi and python 2.7.10. What I've noticed is when I have concurrent connections, the response time per request increases. This increase may go from 20ms for 1 connection to 200ms for 5…
steve
  • 13
  • 6
1
vote
1 answer

django session timesout within 10 seconds

I've finally deployed the app. on production and the session timesout very quickly. If I'm not continuously clicking on links, it'll expire in 15-20 seconds. This doesn't happen in Dev. but again the setup is completely different. Here is the setup…
PlanetUnknown
  • 3,956
  • 4
  • 49
  • 67
1
vote
1 answer

Unable to stop apache using system version of python 2.7.6 instead of virtualenv version

I have recompiled python2.7.11 using: ./configure make make altinstall sudo ln -s /usr/local/bin/python2.7 /usr/local/bin/python wget https://bootstrap.pypa.io/ez_setup.py -O - | sudo /usr/local/bin/python sudo /usr/local/bin/easy_install pip sudo…
Bill King
  • 72
  • 9
1
vote
1 answer

Trying to change the Pylons version my website is using but this causes a DistributionNotFound exception

About a month ago I setup Pylons on my VPS in a virtual environment using the go-pylons.py script they provide. I've, since then, been working on my website and have it all up and running. It works great. Recently though I discovered that I created…
samsu
  • 11
  • 1
1
vote
1 answer

ImportError: No module named ekz.settings wsgi+apache

I am facing a problem for two days now but I can't get any answer that works. I have a project named "ekz" with an app called "welcome", I need to execute the project using apache+wsgi (I am working on osx yosemite). When I run the project using…
Yasser
  • 71
  • 1
  • 6
1
vote
1 answer

Configure Python flask application with apache and mod_wsgi in linux

I have a linux apache 2.4.12 and mod_wsgi 4.5.2 (mod_wsgi.so installed into apache) under application account. Apache runs under port 8050 under application account. Following this link to test mod_wsgi working:…
user3400152
  • 133
  • 6
  • 13
1
vote
1 answer

Nginx / Apache / WSGI / Django - Unexpected raising 500 errors (499 on Nginx)

I have problems with my Django server on Webfaction hosting. For some request (about 1.000 request from 500.000 per day) I can see errors in access logs. In nginx log I can see requests with code "499", in apache log they have "500" error…
quick
  • 1,104
  • 10
  • 19
1
vote
1 answer

Deployment Django using Apache and mod_wsgi on Remote Ubuntu Server

I'm trying to deploy my Django Project on Remote Ubuntu server with IP address: my.rm.ip.ad. And project on the Server is located at path /path/to/project. I have configured ports.conf, hosts, wsgi.py (of my Django Project) and added a website…
cengineer
  • 1,362
  • 1
  • 11
  • 18
1
vote
2 answers

Installing mod_wsgi with python 2.7 on Windows 64 bit

I'm trying to use apache with mod_wsgi to deploy my Django application written on a windows 7 64 bit machine. I am using python 2.7.11 (64 bit). I downloaded Apache 2.4 from this link - (http://www.apachehaus.com/cgi-bin/download.plx#APACHE24VC09)…
pranav jain
  • 31
  • 1
  • 5