freebsd-ports/net-mgmt/netdisco/files/patch-netdisco_apache.conf
Rong-En Fan b2ac137617 - Update to 0.95
- Convert old style rc script to new style

PR:		ports/119296
Submitted by:	valerio.daelli at gmail.com (maintainer)
2008-01-05 14:35:25 +00:00

45 lines
1.2 KiB
Text

--- 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