V
V
Vladimir Merk2015-06-09 14:49:17
Nginx
Vladimir Merk, 2015-06-09 14:49:17

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

1 answer(s)
M
Mikhail Osher, 2015-06-09
@VladimirMerk

nginx.org/en/docs/ngx_core_module.html#include

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question