-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnetdisco_apache_dir.conf
39 lines (33 loc) · 1.08 KB
/
netdisco_apache_dir.conf
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>