"Fossies" - the Fresh Open Source Software Archive

Member "koha-19.11.15/debian/templates/apache-shared-opac.conf" (23 Feb 2021, 1358 Bytes) of package /linux/misc/koha-19.11.15.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Generic config files source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "apache-shared-opac.conf": 20.05.06_vs_20.11.00.

    1 # Apache configuration settings that are shared for every Koha instance.
    2 # This file contains settings for the OPAC site.
    3 #
    4 # This file should be included from an instance's 
    5 # /etc/apache2/site-available file, from within the VirtualHost section
    6 # for OPAC.
    7 
    8 DocumentRoot /usr/share/koha/opac/htdocs
    9 
   10 ScriptAlias /cgi-bin/koha/ "/usr/share/koha/opac/cgi-bin/opac/"
   11 ScriptAlias /index.html "/usr/share/koha/opac/cgi-bin/opac/opac-main.pl"
   12 ScriptAlias /search "/usr/share/koha/opac/cgi-bin/opac/opac-search.pl"
   13 ScriptAlias /opac-search.pl "/usr/share/koha/opac/cgi-bin/opac/opac-search.pl"
   14 
   15 RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/opac-detail\.pl?bib=$1 [PT]
   16 RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT]
   17 RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT]
   18 RewriteRule ^(.*)_[0-9]{2}\.[0-9]{7}\.(js|css)$ $1.$2 [L]
   19 
   20 <IfVersion >= 2.4>
   21     AliasMatch "^/sitemap(.*)" "/var/lib/koha/${instance}/sitemap/sitemap$1"
   22     <Directory "/var/lib/koha/${instance}/sitemap">
   23         Require all granted
   24     </Directory>
   25 </IfVersion>
   26 
   27 Alias "/api" "/usr/share/koha/api"
   28 <Directory "/usr/share/koha/api">
   29     Options +ExecCGI +FollowSymlinks
   30     AddHandler cgi-script .pl
   31 
   32     SetEnv MOJO_MODE "production"
   33 
   34     RewriteBase /api/
   35     RewriteCond %{REQUEST_URI} !^/api/v[0-1]+/app.pl
   36     RewriteRule ^(v[0-9]+)/(.*)$ /api/$1/app.pl/api/$1/$2 [L]
   37 </Directory>