E
E
Evgeny Komarov2021-01-25 17:19:12
Nginx
Evgeny Komarov, 2021-01-25 17:19:12

How to add a GET parameter to the server response?

Hello!
Using nginx it is possible to send a response from the server without creating a service file (in python or php)

location / {
    return 200 'текст ответа';
}

How to add the value of the GET parameter that arrived in the request to the response message?
To http://my-domPain/?ver=12receive a message when contacting текст ответа 12?
Thanks in advance to all those who care.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
NubasLol, 2021-01-25
@maNULL

nginx.org/en/docs/http/ngx_http_core_module.html#v...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question