Answer the question
In order to leave comments, you need to log in
How to setup aliases for apache + nginx?
Good afternoon. Tell me how to set up subdomains for the main domain through aliases / aliases?
In my manual, I only have a manager through the ISP, but I need to do everything manually through the console.
It is necessary that the main site.ru domain have an alias / synonym for subdomain.site.ru
Answer the question
In order to leave comments, you need to log in
Option 1 create a separate site with the path to the site in the same folder.
2 via proel in nginx . server_name example.com www.example.com;
the same thing in apache
here, no difference, you can do it here and here
ServerName example.com ya.ru google.com
ServerAlias www.example.com yandex.ru
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question