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

client denied by server configuration: /var/www/myapp.wsgi

I am getting this error while setting up my server for flask and apache on debian. I've read through similar errors and I have changed all order allow,deny Allow from all to Options All AllowOverride All Require all granted but still the same…
Roozbeh G
  • 427
  • 4
  • 18
1
vote
1 answer

Serve Django from root domain with Apache, and also use /var/www/html

I'm new to Django and Apache, so apologies if my terminology is a bit off. I have a Django app that I'm serving with Apache using mod_wsgi. I used this guide, and just switched to Apache from the Django dev server. In my 000-default.conf file I…
mr.adam
  • 241
  • 2
  • 12
1
vote
1 answer

HTTPS with Flask-RESTful and mod_wsgi

I am trying to restrict a Google Apps API Python client to HTTPS, using Flask-RESTful and mod_wsgi. The API itself appears to work, but I am running into errors when I point web browsers to the HTTPS url. I'm fairly new to Python, Flask, and…
K H
  • 33
  • 1
  • 7
1
vote
1 answer

.htaccess is read but redirect not working

I am using apache + django + mod_wsgi as server. My goal is to redirect non-www url to www url. I have the mod_rewrite enabled: when executing the command Module rewrite already enabled, I have Module rewrite already enabled The site.conf in…
Lelouch
  • 2,111
  • 2
  • 23
  • 33
1
vote
0 answers

Python WSGI latency spikes

Using mod_wsgi under Apache, in daemon mode, on Ubuntu, to serve rest api calls from python. Generally calls take about 0.5 seconds but occasionally they peak at 5 seconds. We are running approximately 40 daemon processes all restricted to a single…
Nick Brett
  • 11
  • 2
1
vote
1 answer

Apache mod_wsgi crashing

I'm trying to set up ReviewBoard and I'm running into an issue where mod_wsgi seems to be crashing. I get an error message like this: AH00052: child pid 44359 exit signal Segmentation fault (11) I tried to debug using GDB as stated here:…
cloudwalker
  • 2,346
  • 1
  • 31
  • 69
1
vote
1 answer

How to let the domain ip point to a web2py app instead of the default "welcome" app

I want to enter my app by http://my.domain.ip/ instead of http://my.domain.ip/myapp.should I change the apache config(conf.d/deault.conf) or do something else? I want to bind some domain names to other apps in web2py/applications if this domain…
marc min
  • 13
  • 2
1
vote
1 answer

Which value for WSGIApplicationGroup when running multiple Django virtual hosts?

I'm running multiple Django sites on the same Apache instance under mod_wsgi. Currently my apache.conf files contain the following directives (no WSGIApplicationGroup specified): WSGIDaemonProcess mysite \ display-name=mysite \ …
thebjorn
  • 26,297
  • 11
  • 96
  • 138
1
vote
0 answers

TypeError in cryptography module when loading a key in a multithreaded environment

I'm getting the following exception: File ".../hazmat/primitives/serialization.py", line 20, in load_pem_private_key return backend.load_pem_private_key(data, password) File ".../hazmat/backends/multibackend.py", line 276, in…
Uri London
  • 10,631
  • 5
  • 51
  • 81
1
vote
2 answers

Django/Apache setup giving me a 'module not found' error

So I have this AngularJS/Django/Apache project I was thrown on once a past employee left. So far it's been pretty easy, but I'm at the point where I'm trying to get Django/Apache to play well together and it's not working. Since it's a 'module not…
Zeratas
  • 1,005
  • 3
  • 17
  • 36
1
vote
1 answer

Is it possible to run Django tests on Apache instead of the development server?

When I test my Django web application with python manage.py test, this starts Django's development server and runs the test. I want to run my Django tests on my production stack. Specifically, I want to use Apache instead of Django's development…
Travis
  • 1,998
  • 1
  • 21
  • 36
1
vote
1 answer

Get public client IP in a Flask App?

I want to log the public WAN IP of a client trying to authenticate on a Flask application. Actually, any method I tried return me the LAN IP of the client. My stack is an Apache 2.2 server using mod_wsgi to serve the Flask application. Methods I…
Kaltezar
  • 711
  • 4
  • 9
1
vote
1 answer

Error using mod_wsgi, Django and MongoEngine

I have set up a Django site with MongoEngine and I am trying to run it using Apache and mod_wsgi with a virtualenv. It runs fine in development, but under Apache (on ubuntu 14.04.2) I get the following errors in the apache log: mod_wsgi (pid=16130):…
zelanix
  • 3,326
  • 1
  • 25
  • 35
1
vote
3 answers

Apache modules: C module vs mod_wsgi python module - Performance

A client of ours is asking us to implement a module in C in Apache webserver for performance reasons. This module should handle RESTful uri's, access a database and return results in json format. Many people here have recommended python mod_wsgi…
G.A.
  • 1,443
  • 2
  • 22
  • 34
1
vote
1 answer

How to send file from C# to apache with mod_wsgi (django) and python?

How to send file from C# to apache with mod_wsgi (django) and python? It will be nice to see code example in both c# (client) and python (server).
SuitUp
  • 3,112
  • 5
  • 28
  • 41
1 2 3
99
100