Today I was able to stand up apache with mod_wsgi on Rocky Linux 9 .... python3.9 is native ... so the basic steps were:
sudo dnf update
sudo dnf install httpd
sudo dnf install httpd-devel
sudo dnf groupinstall development (not sure if necessary)
sudo dnf install python3-devel (otherwise you get <Python.h> not found)
Then dd the mod_wsgi ./configure and make steps (not sudo; not in any venv since 3.9 is native). Then if all's well: sudo make install
Also in /etc/httpd/conf.modules.d create a file named
10-wsgi.conf and put this statement in it:
LoadModule wsgi_module modules/mod_wsgi.so
Then the usual apache config and /var/www/wsgi-scripts and wsgirun things, and (re)start httpd
steve