Author Topic: Storage log, config nginx & apache ()  (Read 463 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Storage log, config nginx & apache ()
« on: May 21, 2017, 06:16:37 PM »
I do not understand the logic of storing nginx configs for donen in the /etc/nginx/conf.d folder.
I do not understand the logic of storing apache configs for all donen in one /usr/local/apache/conf.d/vhosts.conf file
I do not understand the logic of storing nginx logs for donen in the /var/logs/nginx folder.
I do not understand the logic of storing apache logs for all donen in the /usr/local/apache/logs folder. In this case, the logs are not separated into domains! Analyzing logs it is not possible to understand to which of the sites belongs to the log line!

It is more logical to store all the configs and logs in the domain directory. Having a certain structure:
HOME_DIR/www/vhosts/DOMEN_NAME - base dir
HOME_DIR/www/vhosts/DOMEN_NAME/http - dir for site
HOME_DIR/www/vhosts/DOMEN_NAME/conf- dir for config files
HOME_DIR/www/vhosts/DOMEN_NAME/logs- dir for config logs

With each directory of logs, make the symlink in the directory /var/log for more convenient analysis by admin.

So in fact it will be much more convenient and each user will be able to more accurately configure for themselves configs and view the logs of their sites.

All this is not much work!

Offline
*****
Re: Storage log, config nginx & apache ()
« Reply #1 on: May 30, 2017, 06:32:27 AM »
Hello,

probably in the future it will be changed but it is not a current plan.

Offline
*
Re: Storage log, config nginx & apache ()
« Reply #2 on: May 30, 2017, 08:47:26 AM »
Hello, Igor !
Ok.