I
I
Ilya2018-12-15 21:38:06
Nginx
Ilya, 2018-12-15 21:38:06

How to organize subdomains in NuxtJs + nginx?

How to organize subdomains in NuxtJs?
Let's say there are several subdomains:
one.site.com
two.site.com
We redirect them to the _dist folder.
How to get the subdomain name in NuxtJs itself?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
TyzhSysAdmin, 2018-12-15
@hrhr99

Handle HTTP header.

GET /ololo/ HTTP/1.1
Host: two.site.com <---- тут имя хоста к которому обращается клиент
User-Agent: Mozilla/5.0
Accept: text/html
...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question