Old 31st July 2005, 00:10
till till is offline
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default Config file templates

This is the first post in a series where i try to explain some internals
of ISPConfig that might be of interest for developers and everyone
interested in customizing his ISPConfig installation.


The ISPConfig setup is based on config files for the configured
daemons like apache, bind, postfix etc. That means that none of
these deamons is connected directly to the mySQL database.
All daemons are reading their configuration from text files.

The templates for these config files are located in the directory:


The templates have the name of the config file with the extension

Example: BIND primary domain template


{SERIAL} ; serial, todays date + todays serial #
{DNS_REFRESH} ; refresh, seconds
{DNS_RETRY} ; retry, seconds
{DNS_EXPIRE} ; expire, seconds
{DNS_TTL} ) ; minimum, seconds
NS {DNS_NS1}. ; Inet Address of name server 1
NS {DNS_NS2}. ; Inet Address of name server 2

<!-- BEGIN DYNAMIC BLOCK: mxrecords -->
<!-- END DYNAMIC BLOCK: mxrecords -->
<!-- BEGIN DYNAMIC BLOCK: arecords -->
<!-- END DYNAMIC BLOCK: arecords -->
<!-- BEGIN DYNAMIC BLOCK: cnamerecords -->
<!-- END DYNAMIC BLOCK: cnamerecords -->


Variables are enclosed in curly brakes.


This will be replaced by the TTL of the DNS Record.

Looped sections are enclosed in:

<!-- BEGIN DYNAMIC BLOCK: NameOfTheSection -->

... LOOPED Content ....

<!-- END DYNAMIC BLOCK: NameOfTheSection -->

Many modifications can be done here without programming a single
line of PHP code.

To be continued...
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
dotcom (27th June 2007)
Sponsored Links


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 08:38.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.