[modcfgldap-devel] (Re-)design - multiple vhosts / server
Status: Beta
Brought to you by:
abrenk
From: Turbo F. <tu...@ba...> - 2004-04-13 08:17:50
|
As described a week or so ago in my 'introduction letter', there's a problem with multiple vhosts on one server. As it is now, modcfgldap can only handle ONE vhost on ONE server. This is obviosly wrong, but easiest to code for... I'm an ISP. Even though I don't SELL - for money - internet access, I do offer mail-/web-/shellhosting to friends, family, familys family and friends family etc. This means that my LDAP database is organized in such a way that each friend/family have it's own branch in the database: ----- s n i p ----- [papadoc.pts/12]$ ldapsearch -LLL -s one dn | grep ^dn: 2> /dev/null dn: dc=sundqvist,dc=com dn: dc=winas,dc=com dn: dc=intelligence-5,dc=com dn: dc=bayour,dc=com dn: dc=gamestudio,dc=com dn: dc=fredriksson,dc=com dn: dc=agby,dc=com dn: dc=bortheiry,dc=com dn: dc=sahlen,dc=com dn: dc=vger,dc=com dn: dc=henriksson,dc=com ----- s n i p ----- Some (or all if need be) might have/want their own vhost - some have registered domains not showned by the DN, some don't. This naturaly mean that I'd like THEIR vhost somewhere under THEIR branch... The idea I'm having (please contribute) is to have ONE object specifying information about this webserver and 'links' to the actual vhosts. Example: 'dc=papadoc,dc=bayour,dc=com' is the MAIN branch, where I put everything that have to do with the actual 'site' (my machines etc), so this is where the main VHOST object would reside. In this, each of the VHOSTs that's availible for apache on this server is listed as an RDN: ----- s n i p ----- ; below this DN is where I have my DNS dn: ou=DNS,dc=bayour,dc=com ; this is the main object with links to vhosts dn: cn=apache,ou=WEB,dc=bayour,dc=com objectClass: phpQLAdminWebSrv cn: apache apacheVHostRDN: cn=testing.bayour.com,ou=WEB,dc=bayour,dc=com apacheVHostRDN: cn=www.data-akut.se,ou=WEB,dc=bortheiry,dc=com ; ... other stuff that might be of interest about this machine dn: cn=testing.bayour.com,ou=WEB,dc=bayour,dc=com objectClass: phpQLAdminWebVHost cn: testing.bayour.com webServerName: testing.bayour.com webServerIP: 192.168.1.4 webServerURL: http://testing.bayour.com/ webServerAdmin: tu...@ba... webDocumentRoot: /var/www/testing/ webLogError: /var/log/apache/testing-error.log webLogTransfer: /var/log/apache/testing-trans.log dn: cn=www.data-akut.se,ou=WEB,dc=bortheiry,dc=com objectClass: phpQLAdminWebVHost cn: www.data-akut.se webServerName: www.data-akut.se webServerIP: 192.168.1.4 webServerURL: http://www.data-akut.se/ webServerAdmin: [the admin for this vhost] webDocumentRoot: /var/www/dataakut/ webLogError: /var/log/apache/dataakut-error.log webLogTransfer: /var/log/apache/dataakut-trans.log ----- s n i p ----- This would be fairly easy to implement in modcfgldap. Any thoughts so far? -- tritium attack smuggle NSA Waco, Texas Noriega DES AK-47 Rule Psix explosion Honduras colonel congress Panama strategic [See http://www.aclu.org/echelonwatch/index.html for more about this] |