+1

Hardcoded values to config files

JONIK NSK 10 years ago 0
Good idea - is a move hardcoded configs, urls, templates, path to config files in /etc/ajenti/...

For example, how it realized in Plesk Panel:

cat /etc/psa/psa.conf

# Plesk tree
PRODUCT_ROOT_D /usr/local/psa

# Directory of SysV-like Plesk initscripts
PRODUCT_RC_D /etc/init.d

# Directory for config files
PRODUCT_ETC_D /usr/local/psa/etc

# Virtual hosts directory
HTTPD_VHOSTS_D /var/www/vhosts

# Apache configuration files directory
HTTPD_CONF_D /etc/httpd/conf

# Apache include files directory
HTTPD_INCLUDE_D /etc/httpd/conf.d

# Apache binary
HTTPD_BIN /usr/sbin/httpd

# Apache log files directory
HTTPD_LOG_D /var/log/httpd

# Apache startup script.
HTTPD_SERVICE httpd