This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

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
Thanks given by:


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 785 11-06-2024, 07:27 AM
Last Post: TGates
How to set up File Manger for Sentora? donaldaugust 1 3 ,865 01-11-2022, 05:01 AM
Last Post: Nigel
import data error nguoiveday 1 3 ,961 10-24-2021, 07:23 AM
Last Post: TGates

Forum Jump:


Users browsing this thread: 1 Guest(s)