Bug 23389: Add 'All' option to report dropdowns
[koha.git] / debian / templates / apache-shared-opac.conf
blob2a7e9ace16a725770ed29be30a474ff87fb2f0f4
1 # Apache configuration settings that are shared for every Koha instance.
2 # This file contains settings for the OPAC site.
4 # This file should be included from an instance's 
5 # /etc/apache2/site-available file, from within the VirtualHost section
6 # for OPAC.
8 DocumentRoot /usr/share/koha/opac/htdocs
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"
15 RewriteCond %{QUERY_STRING} (.*?)(?:[A-Za-z0-9_-]+)=&(.*)
16 RewriteRule (.+) $1?%1%2 [N,R,NE]
17 RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/opac-detail\.pl?bib=$1 [PT]
18 RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT]
19 RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT]
20 RewriteRule ^(.*)_[0-9]{2}\.[0-9]{7}\.(js|css)$ $1.$2 [L]
22 <IfVersion >= 2.4>
23     AliasMatch "^/sitemap(.*)" "/var/lib/koha/${instance}/sitemap/sitemap$1"
24     <Directory "/var/lib/koha/${instance}/sitemap">
25         Require all granted
26     </Directory>
27 </IfVersion>
29 Alias "/api" "/usr/share/koha/api"
30 <Directory "/usr/share/koha/api">
31     Options +ExecCGI +FollowSymlinks
32     AddHandler cgi-script .pl
34     SetEnv MOJO_MODE "production"
36     RewriteBase /api/
37     RewriteCond %{REQUEST_URI} !^/api/v[0-1]+/app.pl
38     RewriteRule ^(v[0-9]+)/(.*)$ /api/$1/app.pl/api/$1/$2 [L]
39 </Directory>