Convert your directory /var/projectA/static to a simple application:
create a directory WEB-INF/
in WEB-INF/ create the file web.xml with this content:
<?xml version="1.0" encoding="ISO-8859-1"?>
Seems super complicated compared to just filtering out spam registrations, e.g. by using reCaptcha or Google login.
If you are really intent on doing this, the GitHub extension and the mw-to-git tool seem like the most mature solutions.
I will be addressing this:
Is there a smart way to approach this problem? The only thing I can
think of is to get a fresh server and try to get the site running
there documenting all the steps. Then handing the image and steps to
IT people and hoping that what worked in one environment is going to
work on a different environment!
Having managed ...
Python is a script language and requires an interpreter to run. However, not all is lost. You can make an executable from a Python script. It is not clear if this works for CGI. I expect you will have to modify your code since CGIs are meant to run within a web environment. Here are a few links: