I want to run python scripts on the mongoose web server. It worked fine with php-cgi.exe but not with python.exe.
Test script test.py:
print("Content-Type: text/html")
print("")
print("<h1>Hello World!</h1>")
Mongoose configuration mongoose.conf:
m .py=text/html
c py
I C:\\python\\python.exe
I've tried the script from the command prompt and it correctly returns:
Content-Type: text/html
<h1>Hello World!</h1>
Calling up http://localhost/test.py returns the following:
print("Content-Type: text/html")
print("")
print("<h1>Hello World!</h1>")
So the python code is not being interpreted and no errors are logged.