portal-apache.conf 1.13 KB
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
<VirtualHost *>
    ServerName auth.example.com

    # DocumentRoot
    DocumentRoot /var/lib/lemonldap-ng/portal
    <Directory /var/lib/lemonldap-ng/portal>
	Order allow,deny
	Allow from all
	Options +ExecCGI
    </Directory>

    # Portal must be interpreted by Perl
    <Files *.pl>
	SetHandler perl-script
	PerlHandler Apache::Registry
    </Files>

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

</VirtualHost>

24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
##############################################
## Best performance under ModPerl::Registry ##
##############################################

## Uncomment this to increase performance of Portal:
#<Perl>
#    require Lemonldap::NG::Portal::SharedConf;
#    Lemonldap::NG::Portal::SharedConf->compile(
#        qw(delete header cache read_from_client cookie redirect unescapeHTML));
#    # Uncomment this line if you use Lemonldap::NG menu
#    require Lemonldap::NG::Portal::Menu;
#    # Uncomment this line if you use Lemonldap::NG notifications mechanism
#    require Lemonldap::NG::Portal::Notification;
#    # Uncomment this line if you use portal SOAP capabilities
#    require SOAP::Lite;
#</Perl>