-----Original Message----- From: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] On Behalf Of Markus Rosjat Sent: 06 November 2016 13:56 To: misc@openbsd.org Subject: Re: Simple example for httpd fastcgi
Hi mark, I saw that befor and did the steps for python like there and I can thest my script by chroot but I cant really figure what to do in the httpd config to get my script called when I surf it to it over the browser. regards Markus Am 05.11.2016 um 21:16 schrieb Mark Willson: > On 05/11/2016, 20:10, "Markus Rosjat" <owner-m...@openbsd.org on behalf of > ros...@ghweb.de> wrote: > >> Hi there, >> Is there some how-to or examples out there to get a clue how to configure >> httpd to run python scripts ? >> Regards >> Markus >> Von meinem Samsung GerÀt gesendet. > > Markus, > > This might help … > > http://hydrus.org.uk/journal/openbsd-httpd.html > > > -mark > Markus, Here's what the key portion of the httpd.conf file contains: # A name-based "virtual" server server "chrome.hydrus.org.uk" { alias "chrome" listen on * port 80 root "/hydrus/data" log access "hydrus-access.log" log error "hydrus-error.log" location "/cgi-bin/*" { fastcgi root "/hydrus/data" } } Hope that helps. -mark