Answer the question
In order to leave comments, you need to log in
Is it possible to include third-party files in the nginx settings for a specific site?
Hello.
Is it possible to "mix in" settings from a third-party file to the main site settings in nginx /etc/nginx/sites-available/default? The include type in php.
If yes, how is it done?
server {
listen *:80;
server_name site.com;
access_log /var/log/nginx/access.log;
# здесь подключить файл с частью настроек
# например из /home/user/site.conf
#
}
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