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

Running Python scripts in a browser

I want to start learning Python - and I'm having trouble getting scripts to load up in a browser (using Wamp). So far I've tried the following: 1: add the following lines to httpd.conf: AddHandler cgi-script .py Options ExecCGI I navigate to…
sunwukung
  • 169
  • 2
  • 11
0
votes
1 answer

Redhat | error in mod_swgi installation

I'm getting the following error when I try to install mod_wsgi ./configure checking for apxs2... no checking for apxs... /usr/sbin/apxs checking Apache version... 2.2.3 configure: creating ./config.status config.status: creating…
Switch
  • 159
  • 10
0
votes
2 answers

segfault with mod_wsgi / mod_python after Python upgrade on Gentoo

I'm having a problem after upgrading from Python 2.5 to 2.6 I'm using Gentoo and running a Django app with Apache 2 and mod_python. After the upgrade I started getting a segfault when I try to access the site, Apache starts fine and can serve static…
F.C.
  • 125
  • 6
0
votes
2 answers

Reference the matched directory inside an Apache DirectoryMatch directive

I am attempting to configure Apache to host multiple django sites via mod_wsgi. The mod_wsgi setup tutorial gives an example configuration for this scenario where each app is in the same directory: WSGIScriptAliasMatch ^/([^/]+)…
Mark Roddy
  • 777
  • 2
  • 11
  • 13
0
votes
0 answers

How can I enable mod_wsgi in Apache2.4.57.0 on Windows?

Apache/2.4.57 (Win64) Django 2.4.2 I am new to Django and I tried to connect it with Apache through mod_wsgi but it seems new versions of Apache does not support such kind of module. I installed mod_wsgi wheel in Anaconda with pip. Am I right? Or is…
0
votes
0 answers

apache mod_wsgi error, randomly: Unable to connect to WSGI daemon process

Recently, our server shut down out of nowhere, this what Apache logs show up: [wsgi:error] [pid 8837:tid 140646648096512] (2)No such file or directory: [client] mod_wsgi (pid=8837): Unable to connect to WSGI daemon process 'project' on…
0
votes
0 answers

403 FORBIDDEN APACHE django

Apache/2.4.54 (Win64) OpenSSL/1.1.1p PHP/8.1.12 mod_wsgi/4.9.4 Python/3.11 Server at localhost Port 80 I am trying to run my django project on my windows machine.. in apache this the configuration i have added in httpd.conf file . i have installed…
0
votes
0 answers

WSGI, no module found for "aviance"

I am currently working on a backend for my website so that people don't finally see a NAME_NOT_RESOLVED error. I am using apache2 for my framework & WSGI to be able to communicate with flask, here are the files listed in my project folder located at…
Ruler
  • 1
  • 1
0
votes
0 answers

Apache24 on windows returns 'It works' only instead of the virtual hosts

I have configured Apache 24 with mod_wsgi on windows 2016 server for my Django applications and deployed three websites with different IP addresses. I have also configured ssl certificates for each domain and everything is working fine until somehow…
Wogayehu
  • 1
  • 1
0
votes
1 answer

Apaches virtual host config suddenly not working anymore; how to debug?

out of the blue my virtual host config doesn't work anymore. So my setup sould be quite easy: On Port 80, I want to deliver two WSGI apps, and that's the .conf file I'm using: ServerName mogli.secret.de ######### …
Standard
  • 53
  • 7
0
votes
0 answers

Coworkers think latest Django 3.1.7 needs a mod_wsgi newer than the 3.4.18 provided by Centos 7.9

My coworkers are asking me why we are using the Centos 7.9 provided apache + mod_wsgi for the sake of Django 3.1.7 VERSUS hand assembling a custom build of either Centos 7.9's apache or a custom apache, and the latest or a more recent version of…
0
votes
1 answer

AH00035: access to / denied 403 Forbidden Django mod-wsgi

I am trying to configure apache with Django using mod-wsgi. But I am getting the following error AH00035: access to / denied (filesystem path '/home/ec2-user/ezvoice') because search permissions are missing on a component of the path URL is showing…
Talha Anwar
  • 101
  • 2
0
votes
1 answer

service apache2 start causes error in django

On running apache2 configtest I get Syntax error on line 2 of /etc/apache2/sites-enabled/firstweb.conf: Invalid command 'WSGIScriptAlias', perhaps misspelled or defined by a module not included in the server configuration Action 'configtest'…
0
votes
1 answer

Apache, mod-wsgi: Any URL is served by project, ServerName is ignored

I am setting up a Django project and Apache on Ubuntu 20. The below setup correctly displays the Django project, however ANY URL that points to the server's IP address is served this project. I obviously need to limit this to my particular website…
user984003
  • 101
  • 1
  • 1
  • 2
0
votes
1 answer

How to get to modwsgi 4+ on Centos7

On Centos7, yum pulls in mod_wsgi 3.4 using a yum install. I'm having some problems and multiple resources I have looked at regard this version as ancient and ask the users to upgrade to 4+. I'm not finding the packages online nor any upgrade…
mcweens
  • 1
  • 1
1 2 3
26
27