manager-apache2.conf 957 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
#====================================================================
# Apache configuration for LemonLDAP::NG Manager
#====================================================================

# Uncomment this if no previous NameVirtualHost declaration
#NameVirtualHost __VHOSTLISTEN__

# Manager virtual host (manager.__DNSDOMAIN__)
<VirtualHost __VHOSTLISTEN__>
    ServerName manager.__DNSDOMAIN__

    # DocumentRoot
    DocumentRoot __MANAGERDIR__
    <Directory __MANAGERDIR__>
	Order deny,allow
	Deny from all
	Allow from 127.0.0.0/8
	Options +ExecCGI
    </Directory>

    # On-line documentation
    Alias /doc/ __DOCDIR__
    <Directory __DOCDIR__>
	Order deny,allow
	Allow from all
    </Directory>

    # Perl script
    <Files *.pl>
        SetHandler perl-script
        PerlResponseHandler ModPerl::Registry
    </Files>

    # Directory index
    <IfModule mod_dir.c>
        DirectoryIndex index.pl index.html
    </IfModule>

</VirtualHost>