Re: Simple example for httpd fastcgi

2016-11-08 Thread Markus Rosjat

Well do it mean I have to have a folder

/var/www/cgi-bin/hydrus/data

to put my scripts ord does it mean I need to have a cgi-bin folder unter

/var/www/htdocs/hydrus/data

regards

Markus

Am 06.11.2016 um 16:37 schrieb Mark Willson:

-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



--
Markus Rosjatfon: +49 351 8107223mail: ros...@ghweb.de

G+H Webservice GbR Gorzolla, Herrmann
Königsbrücker Str. 70, 01099 Dresden

http://www.ghweb.de
fon: +49 351 8107220   fax: +49 351 8107227

Bitte prüfen Sie, ob diese Mail wirklich ausgedruckt werden muss! Before 
you print it, think about your responsibility and commitment to the 
ENVIRONMENT




Re: Simple example for httpd fastcgi

2016-11-06 Thread Mark Willson
-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



Re: Simple example for httpd fastcgi

2016-11-06 Thread Markus Rosjat

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"  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 Rosjatfon: +49 351 8107223mail: ros...@ghweb.de

G+H Webservice GbR Gorzolla, Herrmann
Königsbrücker Str. 70, 01099 Dresden

http://www.ghweb.de
fon: +49 351 8107220   fax: +49 351 8107227

Bitte prüfen Sie, ob diese Mail wirklich ausgedruckt werden muss! Before 
you print it, think about your responsibility and commitment to the 
ENVIRONMENT




Re: Simple example for httpd fastcgi

2016-11-05 Thread Mark Willson
On 05/11/2016, 20:10, "Markus Rosjat"  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



Simple example for httpd fastcgi

2016-11-05 Thread Markus Rosjat
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.