#1  
Old 31st July 2005, 00:10
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 19,805
Thanks: 285
Thanked 1,805 Times in 1,357 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:

/root/ispconfig/isp/conf/

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

Example: BIND primary domain template

-----------------------------------------------------------------

$TTL {DNS_TTL}
@ IN SOA {DNS_NS1}. {DNS_ADMINMAIL}. (
{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 -->
{MX_HOST} MX {MX_PRIORITAET} {MX_MAILSERVER}.
<!-- END DYNAMIC BLOCK: mxrecords -->
{DNS_SOA}. A {DNS_SOA_IP}
<!-- BEGIN DYNAMIC BLOCK: arecords -->
{A_HOST} A {A_IP}
<!-- END DYNAMIC BLOCK: arecords -->
<!-- BEGIN DYNAMIC BLOCK: cnamerecords -->
{CNAME_HOST} CNAME {CNAME_ZIEL}.
<!-- END DYNAMIC BLOCK: cnamerecords -->
;;;; MAKE MANUAL ENTRIES BELOW THIS LINE! ;;;;

-----------------------------------------------------------------

Variables are enclosed in curly brakes.
Example:

{DNS_TTL}

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

Bookmarks

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 03:39.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Sponsored Links: Unified Communications: Thoughts, Strategies and Predictions
Join the discussion.
www.seamlessenterprise.com

IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com

Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com

Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com

Red Hat Virtual Experience - a free virtual event. Dec. 9th