Re: nginx and python script

2025-01-06 Thread Sergey A. Osokin
Hi, On Fri, Dec 27, 2024 at 10:15:15PM +0100, Ralf Figge via nginx wrote: [...] > > i am a newbee from nginx. I need to run a python script via cgi-bin. That isn't nginx business to run cgi-bin scripts, but nginx can proxy a request to an application server behind. For the application server ro

Re: nginx and python script

2024-12-28 Thread Ralf Figge via nginx
Hi Jeff, /i am not shure, that this will be run ok. That was not the full line to call. I had think, that was only something to change in fcgiwrap. This was a part from a ZTP . Here the full python script, which run without changing under apache2 with mod_cgid. --

Re: nginx and python script

2024-12-27 Thread Jeff Dyke
Pass {serial} to your proxy from a normal nginx args variable. location /another_script { proxy_pass http://server/cgi-bin/another_script.py? $args } And then you'll likely want to change from environ to the query string. I would also make

nginx and python script

2024-12-27 Thread Ralf Figge via nginx
Hello, i am a newbee from nginx. I need to run a python script via cgi-bin. I search for information about python and nginx, and found fcgiwrap und uwsig. I test uwsig (as cgi-bin), but there i become only error 502 Gateway error. fcgiwrap looks like better, But i have 1 problem with it: Here