Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question