This repository has been archived by the owner on Nov 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhttpd-vufind.conf
61 lines (54 loc) · 2.3 KB
/
httpd-vufind.conf
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Define Path
Alias /vufind /usr/local/vufind/web
<Directory /usr/local/vufind/web/>
Order allow,deny
allow from all
AllowOverride All
# Uncomment the following lines, if you wish to use the Shibboleth authentication
# AuthType shibboleth
# require shibboleth
# Friendly URLs
#
# You may need to adjust the RewriteBase to match your VuFind path.
# You can remove the line if your vufind instance will be located at the web
# server root.
#
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /vufind
# Note: The following RewriteRule directives include the [B] flag to escape
# backreferences. This prevents encoding problems caused by special characters
# like & if they show up in ids. Note that the flag doesn't work in some
# versions of Apache prior to 2.2.12; if you run into trouble, try upgrading.
RewriteRule ^(MyResearch)/([^/]+)/(.+)$ index.php?module=$1&action=$2&id=$3 [B,L,QSA]
RewriteRule ^(Record)/([^/]+)/(.+)$ index.php?module=$1&id=$2&action=$3 [B,L,QSA]
RewriteRule ^(Record)/(.+)$ index.php?module=$1&id=$2 [B,L,QSA]
RewriteRule ^([^/]+)/(.+)$ index.php?module=$1&action=$2 [B,L,QSA]
</IfModule>
# Disable Magic Quotes
php_value magic_quotes_gpc false
# Session Settings
php_value session.use_cookies 1
php_value session.use_only_cookies 1
# important: we want to serialize objects
php_value session.auto_start 0
#php_value session.cookie_secure 1
# we should check session lifetime in "read" methods
# since PHP cookies do not "refresh" them during activity
# hence we leave them alive until browser closes
php_value session.cookie_lifetime 0
php_value session.gc_maxlifetime 6000
# Dynamic CSS
AddType application/x-httpd-php .css
## Uncomment these lines if you wish to show all errors on the screen.
#php_value display_errors 1
#php_value error_reporting 2047
</Directory>
# Process Login for Administration Module (note use of regular expression in
# Location to ensure matches in case-insensitive environments like Windows).
<Location ~ "/[Vv][Uu][Ff][Ii][Nn][Dd]/[Aa][Dd][Mm][Ii][Nn]/.+">
AuthUserFile /usr/local/vufind/web/services/Admin/.htpasswd
AuthName "VuFind Administration"
AuthType Basic
require valid-user
</Location>