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

mod-wsgi one daemon for multiple VirtualHosts with different ServerNames

I have an apache2 / mod-wsgi deploy serving multiple domains with what is essentially one single application. All domains are served both on port 80 and 443. So, my configuration would look something like: #ServerName…
velis
  • 233
  • 2
  • 10
0
votes
0 answers

trac git repository browser not working

I am trying to setup Trac 1.0.13 on Apache with mod_wsgi. I want to be able to browse local git repos with the BrowserModule. My trac.ini has [git] cached_repository = enabled persistent_cache = enabled [trac] repository_type = git repository_dir =…
0
votes
1 answer

Bigger file uploads from Chrome browser hang the mod_wsgi

Recently we upgraded mod_wsgi to v 4.5.15. When trying to upload a 700KB or bigger file to a Django project from Chrome, the Django website crashes. The same file upload from Firefox works fluently. What I found in documentation, that there are more…
Aidas Bendoraitis
  • 1,465
  • 2
  • 14
  • 17
0
votes
1 answer

Apache mod_wsgi, Django and project file permissions

I am setting up a Django project in production. But I'm dealing with a weird permission issue. Before all, this is the structure of my project: project project settings.py urls.py wsgi.py ... apps app1 app2 app3 logs static ... When deploying…
idris
  • 13
  • 1
  • 5
0
votes
0 answers

Large number of apache virtualhosts: Python mod_wsgi vs PHP

I have a large number of low-traffic sites I'd like to host on the same Apache server, as many as 500 sites. Currently, I'm powering the pages with PHP and I have a different virtualhost set up for each site. I'd like to migrate my sites to Django…
James
  • 101
0
votes
0 answers

Django-cms mod_wsgi Compiled vs runtime python version

I am an apache novice... that being said. I'm trying to run through a tutorial for configuring django-cms. Everything works well enough when I'm using manage.py 's runserver, but now I want to run this using apache on my local network. I have a…
hyleaus
  • 101
  • 2
0
votes
1 answer

server datetime value jumps

would anyone give insight on this datetime issue: My web-application (on centos/apache/wsgi/django) shows different current time (datetime.datetime.now()) from call to call - I'm not asking why the time keeps going ahead :) I get the following in my…
Evgeny
  • 599
  • 3
  • 10
  • 17
0
votes
1 answer

Deploying django on mod_wsgi

The problem: I get 404 error when trying to reach localhost:80. [root@alarmpi public_html]# tail -n 1 /var/log/httpd/error_log [Sat Jun 04 23:09:50.235251 2016] [wsgi:error] [pid 2323:tid 1973417008] [client ::1:45230] Target WSGI script not found…
julka
  • 101
  • 1
0
votes
1 answer

mod_wsgi app in two different ports

I have a WSGI app working in prod and I want a staging app in the same server, So I configured two virtual hosts in different ports, 80 for prod and 9090 for stag, but every time I request port 9090 it is using the prod app and I dont know why. Here…
gbriones.gdl
  • 123
  • 7
0
votes
1 answer

Serving a Python Page with Windows / Apache / Mod_WSGI?

I'm trying to setup python / apache / WSGI on windows. I have the following installed, all 32-bit and vc9: Apache 2.4 Python 2.7.9 Mod_WSGI.so in the modules folder. http://localhost/ Displays the Apache Haus web page successfully -- Apache is…
some1
  • 79
  • 6
0
votes
0 answers

How do I configure the following Apache server?

Honestly saying I've read apache documentation, but there are too many parameters, that I don't know how to configure (KeepAlive, ServerLimit, StartServers, MaxRequestWorkers, MinSpareThreads, MaxSpareThreads, ThreadsPerChild, Timeout,…
Paul R
  • 171
  • 6
0
votes
1 answer

mod_wsgi keeps using system python

I installed apache 2.4 on ubuntu 14.04 with mod_wsgi 4.4 from source and pyenv to use python 2.7.9. I set up the apache configuration to work with pyenv. I'm getting the following error when I run my web2py app: File…
Omiga
  • 111
  • 6
0
votes
1 answer

Two mod_wsgi Django apps on one Apache are trying to use each other's config files

I have two unrelated mod_wsgi Django apps, which need to be served from two virtual hosts in one instance of Apache2. I've made each a virtual host, each with its own directory, settings.py and wsgi.py. The error I keep seeing is: [Wed Jun 03…
fadedbee
  • 2,068
  • 5
  • 24
  • 36
0
votes
1 answer

Limiting memory and CPU usage per httpd.worker, with apache/mod-wsgi?

Upon running certain functions within a web application, the 'top' command sometimes shows CPU usage for a particular httpd.worker going up to 100%; also, the memory use per worker sometimes gets high enough to be of concern. The wsgi configuration…
Boa
  • 111
  • 2
  • 8
0
votes
1 answer

mod_wsgi authorization with Django users from postgres database

I am trying to protect a url path with basic auth and want to use the users from my Django application which are stored in a Postgres database. The user app is allowed to access this database, the web application works fine, but the authentication…
Thomas
  • 145
  • 1
  • 6