From owner-freebsd-isp Fri Jul 12 15:52: 1 2002 Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 24D5737B40B for ; Fri, 12 Jul 2002 15:51:56 -0700 (PDT) Received: from gate21.fw.porsche.de (gate23.fw.porsche.de [193.174.9.99]) by mx1.FreeBSD.org (Postfix) with SMTP id DF2D343E42 for ; Fri, 12 Jul 2002 15:51:53 -0700 (PDT) (envelope-from perisa@porsche.de) Received: (qmail 8110 invoked from network); 12 Jul 2002 21:54:35 -0000 Received: from unknown (HELO wuxin011.ibd.porsche.de) (141.36.65.1) by 193.197.149.150 with SMTP; 12 Jul 2002 21:54:35 -0000 Received: (qmail 24139 invoked from network); 12 Jul 2002 21:49:49 -0000 Received: from wuxws007.ibd.porsche.de (HELO porsche.de) (141.36.2.178) by smtp4cli.ibd.porsche.de with SMTP; 12 Jul 2002 21:49:49 -0000 Message-ID: <3D2F4F75.1090902@porsche.de> Date: Fri, 12 Jul 2002 23:51:49 +0200 From: Marc Perisa User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0rc3) Gecko/20020523 X-Accept-Language: en, de-de, es-es MIME-Version: 1.0 To: "Gary D. Margiotta" Cc: Mark Johnston , 'Odhiambo Washington' , freebsd-isp@freebsd.org Subject: Re: Scripts to Manage Virtual Hosts References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Gary D. Margiotta wrote: > I started writing some perl scripts which I use to add virtualhosts and > redirects to separate config files. I didn't like the idea of editing the > httpd.conf directly, so I made use of the ResourceConfig directive, and > created 2 files called virtualhosts.conf and redirects.conf which apache > pulls in when started. > > The scripts are currently only able to add entries, and not remove them, > but should be able to be easily enough modified to include that, I just > haven't had the time to finish them up. I want to eventually hook up the > scripts to keep the info in a database for much easier organization and > manipulation of domains, but again, lack of time. > > You'll notice that it also makes a call to a shell script that gets run to > ifconfig the virtual IPs on the host interface. I also run that before I > restart apache to make sure the new IP takes effect. > > -Gary > Does anyone know about a project to manage the Apache, postfix, qmail, shell-users for login and configuration from a LDAP-database? A friend of mine and me are trying to write a tool like that. Has anyone interest? Marc To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message