conf files

Working with Nginx config files

Submitted by admin on Sun, 01/06/2019 - 13:41

To update templates:

echo "action=rewrite&value=nginx" >> /usr/local/directadmin/data/task.queue
/usr/local/directadmin/dataskq d

 

To copy template files and rewrite them as we want

mkdir -p /usr/local/directadmin/data/templates/custom/ 
cp /usr/local/directadmin/data/templates/nginx_server.conf /usr/local/directadmin/data/templates/custom/nginx_server.conf

 

to check syntax of config file:

ngnix -t

 

 

 

good link to build a config file for Nginx:

Linux Server .conf Files Directory

Submitted by admin on Tue, 08/02/2016 - 19:37

Default options are read from the following files in the given order:


Default options are read from the following files in the given order:
/etc/my.cnf
/etc/mysql/my.cnf
/usr/etc/my.cnf
~/.my.cnf

restarting mysql or mysqld services


service mysqld start
service mysqld stop
service mysqld restart