iirc CGI is Common Gateway Interface, the scripts run serverside and output html that’s returned the the client. It’s a bit old schooI I guess. The scripts can be anything, perl,python, whatever, so long as they output something the client can understand.
So the client isn’t relevant for this one really, the server takes a POST and sends it as an email then returns a nice HTML to the client saying thanks for your message.
If you just drop the script in the root directory of the web server, the server returns it to the client as text and it’s ungood.
in Apache, typically one adds an entry in the conf like “Location /cgi-bin” with “Directory /var/www/cgi-bin/” and "option ExecCGI’, or something like this, then the web server doesn’t return the file upon a GET request, instead it executes the file and returns the output.
I can probably just mess with the configs and make it work, but what’s the proper nethserver way to run CGI scripts?