openbsd-ports/www/webacula/patches/patch-install_apache_webacula_conf
ajacoutot d043b8d6fc Update to webacula-5.5.1 and add a couple of saner defaults to that it
works out of the box with our current version of bacula.

ok sthen@
2012-02-01 12:59:06 +00:00

106 lines
2.5 KiB
Plaintext

$OpenBSD: patch-install_apache_webacula_conf,v 1.2 2012/02/01 12:59:06 ajacoutot Exp $
--- install/apache/webacula.conf.orig Sat Sep 10 22:22:55 2011
+++ install/apache/webacula.conf Tue Jan 31 17:34:51 2012
@@ -5,17 +5,24 @@
# Allows only localhost by default
#
-LoadModule rewrite_module modules/mod_rewrite.so
+<IfModule !mod_rewrite.c>
+ LoadModule rewrite_module /usr/lib/apache/modules/mod_rewrite.so
+</IfModule>
+
+<IfModule mod_php5.c>
+ php_value max_execution_time 3600
+</IfModule>
# AccessFileName .htaccess
-# RewriteLog "/var/log/httpd/mod_rewrite.log"
+# RewriteLog "/var/www/log/rewrite.log"
# RewriteLogLevel 3
# SetEnv APPLICATION_ENV development
SetEnv APPLICATION_ENV production
-Alias /webacula /usr/share/webacula/html
-<Directory /usr/share/webacula/html>
+Alias /webacula ${TINSTDIR}/html
+
+<Directory ${TINSTDIR}/html>
RewriteEngine On
RewriteBase /webacula
@@ -30,50 +37,50 @@ Alias /webacula /usr/share/webacula/html
Options Indexes FollowSymLinks
AllowOverride All
- Order deny,allow
+ #Order deny,allow
- Deny from all
- Allow from 127.0.0.1
- Allow from localhost
- Allow from ::1
+ #Deny from all
+ #Allow from 127.0.0.1
+ #Allow from localhost
+ #Allow from ::1
#
# change the settings below
#
# Allow from <your network>
-/Directory>
+</Directory>
-<Directory /usr/share/webacula/docs>
+<Directory ${TINSTDIR}/docs>
Order deny,allow
Deny from all
</Directory>
-<Directory /usr/share/webacula/application>
+<Directory ${TINSTDIR}/application>
Order deny,allow
Deny from all
</Directory>
-<Directory /usr/share/webacula/languages>
+<Directory ${TINSTDIR}/languages>
Order deny,allow
Deny from all
</Directory>
-<Directory /usr/share/webacula/library>
+<Directory ${TINSTDIR}/library>
Order deny,allow
Deny from all
</Directory>
-<Directory /usr/share/webacula/install>
+<Directory ${TINSTDIR}/install>
Order deny,allow
Deny from all
</Directory>
-<Directory /usr/share/webacula/tests>
+<Directory ${TINSTDIR}/tests>
Order deny,allow
Deny from all
</Directory>
-<Directory /usr/share/webacula/data>
+<Directory ${TINSTDIR}/data>
Order deny,allow
Deny from all
</Directory>
@@ -83,7 +90,7 @@ Alias /webacula /usr/share/webacula/html
#
# test mod_rewrite
#
-<Directory /usr/share/webacula/html/test_mod_rewrite>
+<Directory ${TINSTDIR}/html/test_mod_rewrite>
RewriteEngine On
# for test mod_rewrite
RewriteBase /webacula/test_mod_rewrite