Python Forum
Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python handling Apache Request
#2
http://flask.pocoo.org/docs/1.0/deploying/mod_wsgi/

1) You'll need to install the mod_wsgi module, so Apache knows how to communicate with python/flask.
2) You'll need to make a something.wsgi file, which will just be one line of code, and is used to let Apache know what callable object will handle requests (it's Flask's app, so there's nothing else you need to do here).
3) You need to edit the Apache config file so it knows which folder contains your wsgi program, and also what url(s) that app should be handling. The config file is probably in /etc, and it's probably named either http.conf or apache.conf or maybe httpd.conf.

But also, your file will never "look for" "bcast.xml". Apache will handle the url, since that's what servers do, and it'll run your url handler when that uri is requested.
Reply


Messages In This Thread
Python handling Apache Request - by harzsr - Nov-15-2018, 09:51 PM
RE: Python handling Apache Request - by nilamo - Nov-15-2018, 10:36 PM
RE: Python handling Apache Request - by harzsr - Nov-15-2018, 10:40 PM
RE: Python handling Apache Request - by nilamo - Nov-16-2018, 04:36 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Apache Module jfha73 2 1,643 Jan-26-2024, 07:59 PM
Last Post: noisefloor
Question Python request (post/get) Drunknmonkie 1 4,012 Jan-19-2023, 02:02 PM
Last Post: prvncpa
  Where is mod_wsgi for Apache on Windows? jfha73 0 2,132 May-01-2020, 02:21 PM
Last Post: jfha73
  Python Request's Proxies not working. Fudster 1 9,996 May-01-2020, 06:42 AM
Last Post: buran
  Django deployment on apache server? tmmaersk 2 3,086 Mar-28-2020, 03:35 PM
Last Post: tmmaersk
  Python + request from specific website - please help hoff1022 8 7,030 Feb-14-2019, 06:52 PM
Last Post: buran
  Enable error logging to browser for Python's Flask under Apache + mod_wsgi nikos 1 4,051 Sep-18-2018, 09:15 PM
Last Post: nikos
  Deploying SSL for my Django 2.0.1 server with Apache on Ubuntu 16.04 (droplet) Drone4four 2 10,608 Jan-26-2018, 06:44 AM
Last Post: Drone4four
  Low Level Request Handling c0da 11 10,387 Mar-15-2017, 03:58 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020