Bug 17178: (RM follow-up) Use latest version of library
[koha.git] / debian / templates / apache-shared-intranet.conf
blob1d347059a0083407d4213c46e1c2424e11ebcf5f
1 # Apache configuration settings that are shared for every Koha instance.
2 # This file contains settings for the intranet site.
4 # This file should be included from an instance's 
5 # /etc/apache2/site-available file, from within the VirtualHost section
6 # for the intranet.
8 DocumentRoot /usr/share/koha/intranet/htdocs
10 ScriptAlias /cgi-bin/koha/ "/usr/share/koha/intranet/cgi-bin/"
11 ScriptAlias /index.html "/usr/share/koha/intranet/cgi-bin/mainpage.pl"
12 ScriptAlias /search "/usr/share/koha/intranet/cgi-bin/catalogue/search.pl"
15 RewriteCond %{QUERY_STRING} (.*?)(?:[A-Za-z0-9_-]+)=&(.*)
16 RewriteRule (.+) $1?%1%2 [N,R,NE]
17 RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/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 Alias "/api" "/usr/share/koha/api"
23 <Directory "/usr/share/koha/api">
24     Options +ExecCGI +FollowSymlinks
25     AddHandler cgi-script .pl
27     SetEnv MOJO_MODE "production"
29     RewriteBase /api/
30     RewriteCond %{REQUEST_URI} !^/api/v[0-1]+/app.pl
31     RewriteRule ^(v[0-9]+)/(.*)$ /api/$1/app.pl/api/$1/$2 [L]
32 </Directory>