blob: 5c4aef230cfabf4b682de9ef50fc8979aa3df7ac (
plain) (
blame)
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
|
--- netdisco_apache.conf.orig Sun Mar 7 19:13:49 2004
+++ netdisco_apache.conf Sun Apr 9 17:44:59 2006
@@ -2,25 +2,35 @@
# This file applied to the global server space.
# $Id: netdisco_apache.conf,v 1.12 2004/03/07 19:13:49 maxbaker Exp $
+#Apache 2.x ---
+%%APACHE2%%LoadModule apreq_module /usr/local/libexec/apache2/mod_apreq2.so
+#--------------
+
# Pool Database Connections
PerlModule Apache::DBI
-<Directory /usr/local/netdisco/html>
+#Apache 2.x ---
+%%APACHE2%%PerlModule CGI
+%%APACHE2%%PerlModule Apache2::Request
+%%APACHE2%%PerlModule Apache2::compat
+#--------------
+
+<Directory %%WWWDIR%%>
order allow,deny
allow from all
</Directory>
+<Directory %%WWWDIR%%/mason>
+ order allow,deny
+ deny from all
+</Directory>
+
<Perl>
# Preload the netdisco module into global server space.
# and parse the config file only once.
{ package HTML::Mason::Commands;
- use lib '/usr/local/netdisco';
use netdisco qw/:all/;
- &netdisco::config('/usr/local/netdisco/netdisco.conf');
-
- # Uncomment next two lines to setup switch reverse proxy.
- #use lib '/usr/local/netdisco/switch';
- #use Apache::ProxyRewriteMax;
+ &netdisco::config('%%PREFIX%%/etc/netdisco/netdisco.conf');
}
# Setup Mason and Session Handler
|