Mass hosting with ldap backend ?

Xavier Beaudouin kiwi at oav.net
Tue Sep 8 22:50:03 MSD 2009


Hello there,

I'm the author of mod_vhs (apache stuff....) and I really like to make  
some module like this for nginx.

The idea of module is to auto configure the webserver uppon the  
request to allow some nice stuff (eg, central provisionning, ldap  
server in somewhere it cannot access to webserver)...

> $ ldapsearch -h 127.0.0.1 -b ou=whosting,dc=top,dc=net  
> wwwDomain=test.net
>
> # extended LDIF
> #
> # LDAPv3
> # base <ou=whosting,dc=top,dc=net> with scope subtree
> # filter: wwwDomain=test.net
> # requesting: ALL
> #
>
> # 'test.net', whosting, top.net
> dn: wwwDomain='test.net',ou=whosting,dc=top,dc=net
> objectClass: top
> objectClass: kazarPerson
> uid: test
> description: test.net Website
> uidNumber: 200
> gidNumber: 200
> userPassword:: <censored>
> homeDirectory: /hosting/http/o/a/v/test.net/
> apacheDocumentRoot: /hosting/http/o/a/v/test.net/
> associatedDomain: test.net
> wwwDomain: test.net
> apacheServerName: test.net

As show, the mod_vhs will change directory to /hosting/http/o/a/v/ 
test.net/ and uid/gid to 200:200 (but this is optional).

Since I like "automagic" configuration and I wish to send the old  
apache into the dust. Is there any nice way to do that ?



/Xavier





More information about the nginx mailing list