From: luis d. <lui...@gm...> - 2012-01-09 15:33:10
|
ubuntu@ip-10-234-37-91:/usr/local/vufind$ vi httpd-vufind.conf # 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> ~ |