Hello,
I have a python script (flask.py) with the following content on an
OpenBSD 7.5 server:
#! /usr/local/bin/python3
print("hello, world!")
I ran the following command to install it:
# install -o www -g www -m 0500 flask.py /var/www/cgi-bin
Then I added the following config to /etc/httpd.conf:
server "localhost" {
listen on * port 8080
location "/*" {
fastcgi { param SCRIPT_FILENAME "/cgi-bin/flask.py" }
}
}
restarted httpd, and executed the following curl request:
$ curl http://localhost:8080/
However, I keep getting 500 internal server error. Not sure what I'm
doing wrong, so any help is much appreciated.
--
Sadeep Madurange
PGP: 103BF9E3E750BF7E
No comments:
Post a Comment