File: handler-apache2.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 (27 lines) | stat: -rw-r--r-- 686 bytes parent folder | download | duplicates (2)
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
PerlOptions +GlobalRequest
<VirtualHost *>

	ServerName protected.example.com
	PerlRequire /var/lib/lemonldap-ng/handler/MyHandler.pm
	# Area protection
	PerlHeaderParserHandler My::Package

	# Configuration reload mechanism (only 1 per physical server is
	# needed): choose your URL to avoid restarting Apache when
	# configuration change
	<Location /reload>
		Order deny,allow
		Deny from all
		Allow from 127.0.0.0/8
		PerlHeaderParserHandler My::Package->refresh
	</Location>

	# Uncomment this to activate status module
	#<Location /status>
	#	Order deny,allow
	#	Deny from all
	#	Allow from 127.0.0.0/8
	#	PerlHeaderParserHandler My::Package->status
	#</Location>

</VirtualHost>