$OpenBSD: patch-install_apache_webacula_conf,v 1.1 2011/07/28 09:24:35 ajacoutot Exp $
--- install/apache/webacula.conf.orig	Wed May 11 10:20:56 2011
+++ install/apache/webacula.conf	Thu Jul 28 11:15:22 2011
@@ -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>
@@ -81,7 +88,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
