Applying the configuration

After creating the configuration file, you need to create a symbolic link to the directory

/etc/ibatyr-nginx/sites-enabled/ to activate the configuration. For example, for the configuration file example.com this can be done using the command:

ln -s /etc/ibatyr-nginx/sites-available/example.com /etc/ibatyr-nginx/sites-enabled/example.com

Next, you must check the correctness of the syntax with the command:

ibatyr-nginx test

The positive answer is shown in Figure 88.

image178

Figure 88 - Transaction response

If a positive response is received, you can apply the configuration (it is worth noting that this method of reloading the NGINX configuration does not lead to interruption of current connections, and can be applied on a server already running in a production environment):

ibatyr-nginx reload