From d26d7b8c52f825c85f14db29f3e07b42f366a1f8 Mon Sep 17 00:00:00 2001
From: seltmann <seltmann@ub.uni-leipzig.de>
Date: Wed, 22 Oct 2014 17:30:40 +0200
Subject: [PATCH] added dev config and some gitignore entries

---
 .gitignore                         |  1 +
 local/.gitignore                   |  1 +
 local/dev/config/vufind/config.ini | 22 +++++++++++
 local/dev/httpd-vufind.conf        | 62 ++++++++++++++++++++++++++++++
 4 files changed, 86 insertions(+)
 create mode 100644 local/.gitignore
 create mode 100644 local/dev/config/vufind/config.ini
 create mode 100644 local/dev/httpd-vufind.conf

diff --git a/.gitignore b/.gitignore
index 6d81b153c67..4a8ccc11d29 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,4 @@ ChangeLog
 TAGS
 *~
 vendor/.git
+.bash_history
\ No newline at end of file
diff --git a/local/.gitignore b/local/.gitignore
new file mode 100644
index 00000000000..e17ac6fb6a0
--- /dev/null
+++ b/local/.gitignore
@@ -0,0 +1 @@
+*/cache
diff --git a/local/dev/config/vufind/config.ini b/local/dev/config/vufind/config.ini
new file mode 100644
index 00000000000..452ee9931a5
--- /dev/null
+++ b/local/dev/config/vufind/config.ini
@@ -0,0 +1,22 @@
+[System]
+debug           = false
+
+[Index]
+url             = http://localhost:8080/solr
+
+[Database]
+database          = mysql://vufind2:vufind2pw@localhost/vufind2
+
+[Parent_Config]
+relative_path = ../../../config/vufind/config.ini
+
+[Site]
+url = "http://localhost"
+
+[Authentication]
+hash_passwords = "1"
+
+encrypt_ils_password = "1"
+
+ils_encryption_key = "3e2ac9b644dd4e0b64b179a0309ead13bb59202a"
+
diff --git a/local/dev/httpd-vufind.conf b/local/dev/httpd-vufind.conf
new file mode 100644
index 00000000000..70c08b36dad
--- /dev/null
+++ b/local/dev/httpd-vufind.conf
@@ -0,0 +1,62 @@
+# Configuration for theme-specific resources:
+AliasMatch ^/themes/([0-9a-zA-Z-_]*)/css/(.*)$ /usr/local/vufind2/themes/$1/css/$2
+AliasMatch ^/themes/([0-9a-zA-Z-_]*)/images/(.*)$ /usr/local/vufind2/themes/$1/images/$2
+AliasMatch ^/themes/([0-9a-zA-Z-_]*)/js/(.*)$ /usr/local/vufind2/themes/$1/js/$2
+<Directory ~ "^/usr/local/vufind2/themes/([0-9a-zA-Z-_]*)/(css|images|js)/">
+  <IfModule !mod_authz_core.c>
+    Order allow,deny
+    Allow from all
+  </IfModule>
+  <IfModule mod_authz_core.c>
+    Require all granted
+  </IfModule>
+  AllowOverride All
+</Directory>
+
+# Configuration for general VuFind base:
+Alias / /usr/local/vufind2/public/
+<Directory /usr/local/vufind2/public/>
+  <IfModule !mod_authz_core.c>
+    Order allow,deny
+    Allow from all
+  </IfModule>
+  <IfModule mod_authz_core.c>
+    Require all granted
+  </IfModule>
+  AllowOverride All
+
+  # Uncomment the following lines, if you wish to use the Shibboleth authentication
+  #AuthType shibboleth
+  #require shibboleth
+
+  RewriteEngine On
+  RewriteBase /
+
+  # If using VuDL, uncomment the following line, fill in your appropriate Fedora
+  # server and port, and make sure that Apache mod_proxy and mod_proxy_http are
+  # enabled.
+  #RewriteRule ^files/(.*)/(.*) http://your-fedora-server/fedora/objects/$1/datastreams/$2/content [P]
+
+  RewriteCond %{REQUEST_FILENAME} -s [OR]
+  RewriteCond %{REQUEST_FILENAME} -l [OR]
+  RewriteCond %{REQUEST_FILENAME} -d
+  RewriteRule ^.*$ - [NC,L]
+  RewriteRule ^.*$ index.php [NC,L]
+
+  # Uncomment this line to put VuFind into development mode in order to see more detailed messages:
+  SetEnv VUFIND_ENV development
+
+  # Uncomment this line if you want to use the XHProf profiler; this is a developer-oriented option
+  # that most users will not need.  Make sure the XHProf PHP libraries are available on your include
+  # path.  See http://vufind.org/jira/browse/VUFIND-419 for more details.
+  #SetEnv VUFIND_PROFILER_XHPROF http://url/to/your/xhprof/web/interface
+
+  # This line points to the local override directory where you should place your customized files
+  # to override VuFind core features/settings.  Set to blank string ("") to disable.
+  SetEnv VUFIND_LOCAL_DIR /usr/local/vufind2/local/dev
+
+  # This line specifies additional Zend Framework 2 modules to load after the standard VuFind module.
+  # Multiple modules may be specified separated by commas.  This mechanism can be used to override
+  # core VuFind functionality without modifying core code.
+  SetEnv VUFIND_LOCAL_MODULES finc
+</Directory>
-- 
GitLab