Adding custom data to vhosts file
#1
Adding custom data to vhosts file
Hello,

How can I add custom data to the vhosts file without editing the OnDaemonRun.hook? I want to add data regarding the sentora server without having a domain added?  

Huh
Reply
#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
#3
RE: Adding custom data to vhosts file
The proper way is:

Module Admin > Apache config > Either Global VHosts entry (added to all domains) or Global ZPanel/Sentora entry (adds to just the panel vhost section)

Or for specific domains, scroll down to 'Override a virtual host setting' > [select domain] >Custom entry.
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
#4
RE: Adding custom data to vhosts file
Notice in case of updates it will be overritten that way and you will need to patch it again.

M B
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

200$ free to start your VPS 60 days credit
Reply


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 ,174 10-24-2021, 07:23 AM
Last Post: TGates

Forum Jump:


Users browsing this thread: 1 Guest(s)