| [reply] |
| [reply] |
adding a domain in the named file and create the zone file in /var/named
I'm not sure how sophisticated you are in
administrating this stuff *at all* (without Perl).
There is something out there that describes
how to handle complicated things in the zone files,
eg. Format of DNS files.
Adding or modifying something depends IMHO entirely
on the conventions already used on your server (what only you may know).
adding virtual host to apache httpd.conf file
This is the same like above. Normally, you won't "add"
anything to "httpd.conf", but rather let include "httpd.conf"
subdirectories containing configuration files, like this
[httpd.conf] example piece:
...
Include /etc/apache2/vhosts-batch-01/*.conf
Include /etc/apache2/vhosts-batch-02/*.conf
...
In these directories, you may provide specialized
configuration files (xyz123.conf) for any http service you provide.
In each directory you may have some "common.inc" file
which gets included by each .conf in the respective directory
But that's the Black Art of Apache Configuration and
this hasn't very much to do with Perl in the first place.
Once you are able to create a consistent multihost
configuration at all, there should be no problem to
write some Perl-Scripts that may manage them
Regards
mwa
| [reply] |