Answer the question
In order to leave comments, you need to log in
How to make an alias for a subdomain?
There are 2 domains: example.com, subdomain.example.com. Both work, everything is set. You need to make subdomain.example.com open from example.com/subdomain, so that paths for files work without taking into account the first directory, i.e. the subdomain itself, /subdomain/.
It doesn't work like this:
location /subdomain {
root /var/www/subdomain.example.com;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question