RE: Adding custom data to vhosts file
06-25-2015, 06:45 AM
(This post was last modified: 06-25-2015, 06:46 AM by rampage.)
I followed this thread http://forums.sentora.org/showthread.php?tid=1183 and created a file with the data that I wanted to add and modified the OnDaemonRun.hook on the apache admin module with
Just in case somebody is trying to do the same thing as me its important to add the line above before this line
so you don't mess up the automatically generated data for the other vhosts.
PHP Code:
$line .= "Include /etc/zpanel/configs/apache/custom-data" . fs_filehandler::NewLine();
Just in case somebody is trying to do the same thing as me its important to add the line above before this line
PHP Code:
$line .= "# Sentora generated VHOST configurations below....." . fs_filehandler::NewLine();
so you don't mess up the automatically generated data for the other vhosts.