A
A
Alex2016-12-06 17:36:00
Nginx
Alex, 2016-12-06 17:36:00

Is it possible to pass a subdomain name through the _SERVER variable in NGINX?

Suppose there is a list of subdomain names name1.domain.ru .. nameN.domain.ru
It is necessary that when requesting one of the subdomains (nameN) from the list, nginx sets the environment variable $_SERVER['subdomainname'] = 'nameN'
Is it possible do? If so, how?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question