Welcome! Log In Create A New Profile

Advanced

Mass hosting with ldap backend ?

Xavier Beaudouin
September 08, 2009 02:58PM
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
Subject Author Posted

Mass hosting with ldap backend ?

Xavier Beaudouin September 08, 2009 02:58PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 256
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready