File: apache.conf

package info (click to toggle)
lemonldap-ng 0.9.2-1.1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,680 kB
  • ctags: 662
  • sloc: perl: 5,009; makefile: 214; sql: 69; sh: 63; xml: 41
file content (48 lines) | stat: -rw-r--r-- 994 bytes parent folder | download
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
41
42
43
44
45
46
47
48
include __DIR__/handler/lmH-apache.conf
#Listen 127.0.0.2:80
<VirtualHost 127.0.0.2:*>
    ServerName auth.example.com

    # DocumentRoot
    DocumentRoot __DIR__/portal
    <Directory __DIR__/portal>
	Order allow,deny
	Allow from all
	Options +ExecCGI
    </Directory>

    # Portal and Manager 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>
#Listen 127.0.0.4:80
<VirtualHost 127.0.0.4:*>
    ServerName manager.example.com

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

    # Portal and Manager 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>