A
A
Alexander Arbuzov2019-09-09 10:15:04
Nginx
Alexander Arbuzov, 2019-09-09 10:15:04

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

2 answer(s)
K
ky0, 2019-09-09
@ky0

Add all desired names to the server_namenginx directive.

V
Viktor Taran, 2019-09-09
@shambler81

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

3.option
to use regular functionality.
www.net.ru/instructions/ispmanager/ispmanager-razd...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question