[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: ldap-based vhosts?
On Wed, 31 Mar 2004, Piotr Wadas wrote:
> I found some commercial module for keeping in LDAP apache/apache-ssl
> vhost. It can be found here
> http://www.msys.ch/products/software/unix/apache/mod_ldapvhost
>
> However opensource if preferred as always - does anyone heard about
> such feature opensourced? :-) Or should I take into consideration
> writing it by myself?
>
No need: http://sourceforge.net/projects/modcfgldap/
$ ldapsearch -x -LLL "(objectclass=apacheconfig)"
dn:
cn=web1.ranger.dnsalias.com,cn=Virtualhosts,cn=Webservers,cn=Config,ou=Hos
ts,dc=ranger,dc=dnsalias,dc=com
cn: web1.ranger.dnsalias.com
objectClass: device
objectClass: top
objectClass: apacheConfig
apacheDocumentRoot: /var/www/html/web1
apacheServerName: web1.ranger.dnsalias.com
dn:
cn=web2.ranger.dnsalias.com,cn=Virtualhosts,cn=Webservers,cn=Config,ou=Hos
ts,dc=ranger,dc=dnsalias,dc=com
cn: web2.ranger.dnsalias.com
objectClass: device
objectClass: top
objectClass: apacheConfig
apacheDocumentRoot: /var/www/html/web2
apacheServerName: web2.ranger.dnsalias.com
dn:
cn=web3.ranger.dnsalias.com,cn=Virtualhosts,cn=Webservers,cn=Config,ou=Hos
ts,dc=ranger,dc=dnsalias,dc=com
objectClass: device
objectClass: top
objectClass: apacheConfig
cn: web3.ranger.dnsalias.com
apacheServerName: web3.ranger.dnsalias.com
apacheDocumentRoot: /var/www/html/web3
Works fine for me (just been using it for testing, not in production).
Regards,
Buchan