S
S
SKEPTIC2020-06-14 17:19:17
Nginx
SKEPTIC, 2020-06-14 17:19:17

Is it possible to use Golang or Python for nginx like PHP?

Is it possible to use Golang or Python for nginx like PHP?
I heard about the fact that nginx and other web servers transmit requests to performers. For php it is cgi, fastsgi.
Can these requests be passed to golang or python?

So that in these PLs you can write like in php: Or That is, to use golang or python as a backend. I know that web servers are launched by these same executors and pass environment variables there, for example, an array of SERVER, COOKIE, etc. But I did not find anything suitable on the Internet. Heard about different frameworks, but this is not particularly suitable.
$data = $_COOKIE['volume'];
echo 123;


Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dasha Tsiklauri, 2020-06-14
@pro100chel

yes you can
nginx proxy_pass

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question