Yes you require Apache as mod_wsgi is an embedded module specifically for the Apache httpd server. You either manually integrate it into the system Apache installation, or you can use pip install method and use mod_wsgi-express to also run a standalone instance, although when I say standalone you are still using the system Apache installation, just that mod_wsgi-express generates a standalone configuration for you and runs the server instance on a separate port to the system Apache instance.
A .wsgi extension is used in docs rather than .py purely because some Apache installations include default configuration which maps .py extensions to CGI handler in Apache thus conflicting with mod_wsgi if you use .py. So the code is still Python, but .wsgi is shown in examples to avoid that conflict. You can use .py if you want, but you must make sure you modify the Apache configuration necessary so that .py extension is not handled as a CGI script. Because distros are different, you would need to work out how to disable the default CGI configuration if present.
Anyway as I said before, unless you explain what configuration you used, where you placed it, what distro you are using and what manual steps if any you took to enable stuff in Apache I can’t really help with your original problem easily and can only guess.
Most of the time for what you describe problem is:
1. Apache was not restarted or forced to reload configuration after changes.
2. Configuration was added to a new separate VirtualHost but you set ServerName to an IP address, which will not work and instead Apache falls back to using default VirtualHost.
3. You do have proper FQDN and set ServerName to it, but did not enable the site where Linux distro requires it.
There can be otger reasons though and without knowing what exactly you have done so far I can help.
On 16 Dec 2024, at 6:28 AM, Nathan Ruffing <na...@rr34.us> wrote: