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

Deploy Flask on Apache using mod_wsgi

I'm trying to deploy a Flask web app I built to be deployed on an Apache server. I'm using Raspbian (Jessie) OS on a Raspberry Pi 3. The app runs perfect on the flask built-in dev web server, but I have been unable to deploy it on the Apache…
snir g
  • 21
  • 5
1
vote
2 answers

Why does django 1.9 keeps using python2.7 when my virtualenv have python3.5?

Im having problems with python versions, im actually developing a web page with python3.5 under Windows 7. But in my server (CentOS 7) i created a virtualenv with python3.5 (because the default version of python in linux is 2.7). The problem is…
Rafael Ortega
  • 434
  • 5
  • 15
1
vote
1 answer

Serving files from Django using mod_wsgi and apache on CentOS 6.8

I have a django web application which I need to serve from an apache server on CentOS 6.8. In order to get this, I´m using mod_wsgi. I have my project located in /path/to/myproject. Right there I have the following directories and files: - app1/ -…
Macawen
  • 13
  • 3
1
vote
0 answers

Deploy Python Falcon app with Apache2

I have developed an api using falcon framework (v1.0). Now, I want to deploy this api on apache2 server with mod_wsgi at amazon EC2 instance. I'm running my app using wsgiref package on EC2 server. import falcon from wsgiref import…
Prateek Jain
  • 547
  • 1
  • 5
  • 16
1
vote
1 answer

ImportError: Import by filename is not supported. (WSGI)

I don't now why I seem to be getting the following errors from the Apache24 error log: mod_wsgi (pid=9036): Exception occurred processing WSGI script 'C:/Apache24/htdocs/tools/ixg_dashboard/ixg_dashboard.wsgi'. Traceback (most recent call…
user3504250
1
vote
2 answers

How can I generate an absolute url for a Pylons controller?

I need to generate a URL for use as a callback in an external system in my pylons application. This requires me to provide both the pylons-app-relative controller path (as generated by the url method: >>> relative_url = url(controller='my_cont',…
Chris R
  • 17,546
  • 23
  • 105
  • 172
1
vote
1 answer

Deploy with Apache2, mod_wgi and django 1.9 on ubuntu server 16.04

I am trying to set up a deployment enviroment for my django website on ubuntu server 16.04. When try to connect to the server I get an internal server error message. The content of my /var/apache2/site-available/000-default.conf is as…
1
vote
0 answers

mod_wsgi: multiple application invokations per request?

I'm using apache with mod_wsgi, and when I start apache and make a request, I see it make one invokation of the application. After a few minutes (the application gets reloaded), and now I see it make two invokations of the application per request.…
Colin
  • 3,670
  • 1
  • 25
  • 36
1
vote
2 answers

AWS ElasticBeanstalk update without modifing Django wsgi.conf

I have a django app deployed in AWS EB using autoscaling. This app uses Django Rest with Token Authentication. In order for this to work, I have to add the following lines in etc/httpd/conf.d/wsgi.conf file: RewriteEngine on RewriteCond…
Ronaldo Bahia
  • 576
  • 3
  • 24
1
vote
1 answer

Python Falcon on Webfaction

I'm trying to get Falcon up and running on Webfaction. I'm not exactly a network guru, so I'm having a tough time wrapping my head around how these applications are served. My Webfaction App is set up as mod_wsgi 4.5.3/Python 2.7 To my…
Alpinestar22
  • 553
  • 2
  • 9
  • 20
1
vote
0 answers

Cache staleness, even though I am not using a cache

I have uploaded my Django site on a development server at Digital Ocean and started serving it using apache2 and mod_wsgi. I am also using apache2 to serve static content. It's a fresh installation of Debian on the server, and have done minimal…
denormal
  • 273
  • 1
  • 8
1
vote
1 answer

Trac not following SVN access control permissions after Apache upgrade

Platform: Windows Server 2008 R2 Apache 2.2.23 (win32)/SSL 1.0.0j upgrading to Apache 2.4.23 (win32)/SSL 1.0.2h CollabNet Subversion Client SVNServe 1.7.8 Trac 1.0.9 (win32) Python 2.7.1 On a Windows server, I had Subversion and Trac interacting…
mloftis
  • 11
  • 2
1
vote
0 answers

Requires: httpd-mmn = 20051115

when I ran command : yum -y install mod_wsgi !! It shows a message Error: Package: mod_wsgi-3.2-7.el6.x86_64 (base) Requires: httpd-mmn = 20051115 Anybody can help me resolve this problem!! thank you! my os version : Linux…
1
vote
1 answer

Shared hosting setup for on Apache for Django 1.10

We're looking for a clean and isolated way to host several Django sites on a single Apache with vhosts on Ubuntu 14.04. Following the docs https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/modwsgi/#using-mod-wsgi-daemon-mode and Where…
samb
  • 1,713
  • 4
  • 22
  • 31
1
vote
1 answer

Serving static files django 1.9 production Error

I have tried following the solutions in the other stack overflow posts about serving Django static files in production, but I couldn't get them to work. My static files are located inside my django app folder (league). My CSS files are not being…
alienboy
  • 443
  • 1
  • 8
  • 18