From owner-freebsd-isp Mon Jul 15 11: 8:24 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 3491037B405 for ; Mon, 15 Jul 2002 11:08:19 -0700 (PDT) Received: from iota.root-servers.ch (iota.root-servers.ch [193.41.193.195]) by mx1.FreeBSD.org (Postfix) with SMTP id 2F1BD43E31 for ; Mon, 15 Jul 2002 11:08:18 -0700 (PDT) (envelope-from gaml@buz.ch) Received: (qmail 39364 invoked from network); 15 Jul 2002 18:07:55 -0000 Received: from dclient217-162-129-56.hispeed.ch (HELO gaxp1800) (217.162.129.56) by 0 with SMTP; 15 Jul 2002 18:07:55 -0000 Date: Mon, 15 Jul 2002 19:16:13 +0200 From: Gabriel Ambuehl X-Mailer: The Bat! (v1.60q) Educational Reply-To: Gabriel Ambuehl X-Priority: 3 (Normal) Message-ID: <16382707250.20020715191613@buz.ch> To: owner-freebsd-isp@FreeBSD.ORG, Odhiambo Washington Cc: FBSD-ISP Subject: Re: Scripts to Manage Virtual Hosts In-Reply-To: <20020712135040.GM10377@ns2.wananchi.com> References: <20020712135040.GM10377@ns2.wananchi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 OW> I believe someone already had written a script that can be used to manipulate OW> httpd.conf to add/remove virtual host entries. OW> I sincerely believe that this is somewhere so I don't have to start agonizing OW> about re-inventing the wheel. OW> Could someone kindly point me to where one is located, better even share with me OW> what they have ;-) Well adding is quite simple, really. Just append the virtualhost lines to httpd.conf (can be done as easy as echo "Your stuff" >> httpd.conf && apachectl graceful ) Now deleting is a bit harder as you'd need to parse the file. OTOH, Apache has got a feature that will include all text files in a subdir into apache.conf which would allow to have a file for each vhost and then simply rm it when it needs to go, description can be found somewhere in the docs or the changelog, can't remember. Furthermore, there are a few projects out there aimed at building something like the "looking nice but back end is mere crap" Sun Cobalt Interface. There is www.ispman.org which seems decent but then again I have a strong feeling against LDAP (I'd build it on MySQL) and don't really like Perl either. Then there is plesk.com who even interfaces with qmail but it happened a few times that their page was down when I tried to access it so I don't trust the stuff very much plus it's rather expensive with like 1000$ license per machine. I've had a few shots at implementing my own control panel system (in various languages, but mostly Python) but always got too annoyed to ever finish it. Part of the reason could have been that I wanted very many features (like transparent distribution of domains among a group of servers or fully XSL template based interface) which took a lot of time to implement and finally had me that fed up that I really haven't had the nerves to write a GUI for it. Generally, I'd be interested to hear about open source cotnrol panel solutions too. Furthermore, I'd might be interested in developing a custom solution, so feel free to contact me. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message