Adding custom data to vhosts file
#2
RE: Adding custom data to vhosts file
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


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.
Reply


Messages In This Thread
Adding custom data to vhosts file - by rampage - 06-25-2015, 05:44 AM
RE: Adding custom data to vhosts file - by rampage - 06-25-2015, 06:45 AM
RE: Adding custom data to vhosts file - by TGates - 06-26-2015, 03:42 AM
RE: Adding custom data to vhosts file - by Me.B - 06-26-2015, 05:35 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Increase disk space by adding volume only, it is okay? 7rdoq 10 7 ,881 11-06-2024, 07:27 AM
Last Post: TGates
How to set up File Manger for Sentora? donaldaugust 1 4 ,888 01-11-2022, 05:01 AM
Last Post: Nigel
import data error nguoiveday 1 5 ,175 10-24-2021, 07:23 AM
Last Post: TGates

Forum Jump:


Users browsing this thread: 1 Guest(s)