File: netdisco_apache_dir.conf

package info (click to toggle)
netdisco 1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 3,176 kB
  • ctags: 1,694
  • sloc: perl: 4,968; sh: 4,496; sql: 596; makefile: 174
file content (39 lines) | stat: -rw-r--r-- 1,108 bytes parent folder | download | duplicates (3)
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
# Apache Configuration for Netdisco
# This is applied to each virtual server

Alias /netdisco                      "/usr/local/netdisco/html/"
Alias /netdisco/                     "/usr/local/netdisco/html/"

<Location /netdisco>
	Options +Indexes
</Location>

# Turn on MASON for .html documents
PerlSetVar site "netdisco"
<LocationMatch "/netdisco/.*\.html$">
	SetHandler perl-script
	PerlHandler netdisco::Mason
</LocationMatch>

# Decline access to mason internals
<LocationMatch "/netdisco/.*(\.mc|autohandler|dhandler)$">
	SetHandler perl-script
    PerlInitHandler Apache::Constants::NOT_FOUND
</LocationMatch>

# Authenticate
# Uncomment these lines and set apache_auth: true in netdisco.conf
# to allow Apache to perform Digest authentication.
#<Location "/netdisco/apache_login.html">
#	AuthType Digest
#	AuthName "netdisco"
#	AuthUserFile /usr/local/netdisco/auth.htdigest
#	Require valid-user
#</Location>

# Uncomment next three lines to 
#  make every request in the switch/ dir go through Mason
#<Location /netdisco/switch/>
#	SetHandler perl-script
#	PerlHandler netdisco::Mason
#</Location>