D
D
dfhusfhgsuo32018-12-30 00:51:15
Nginx
dfhusfhgsuo3, 2018-12-30 00:51:15

How to add an alias to a debian site?

Hello. Can you please tell me which files to edit in order to add alias domains to the site (directory)?
I found one domain config file in Apache, attached aliases to it, but it did not start working.
Bare server: debian with apache + nginx

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Rublev, 2018-12-30
@dfhusfhgsuo3

Most likely, nginx is the first to listen to requests, and then passes them on to Apache for processing. Therefore, edits in the Apache configs are not enough.
Find the nginx configs (somewhere in /etc/nginx/), and look for the server_name parameter there - you can add domain aliases to it, separated by a space.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question