B
B
Boris Yakushev2017-01-25 16:32:22
Nginx
Boris Yakushev, 2017-01-25 16:32:22

Location for subdomain?

Good afternoon.
Can you please tell me how to set up a location for the a.example.com subdomain?
Something like:

root /home/{username}/domains/{parent_domain}/frontend/web;

location ~* (a\.).* {
  root /home/{username}/domains/{parent_domain}/backend/web;
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Peter, 2017-01-25
@petermzg

A subdomain is a separate domain. And set it up as a separate virtual server.
Those. it will have its own server block and root in it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question