Bug 25273: (follow-up) Don't die on unknown authtype
[koha.git] / debian / templates / apache-shared-intranet.conf
blob001342f515bfc5e1cce708aa5702475f8402b96d
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"
14 # Protect dev package install
15 RewriteEngine on
16 RewriteRule ^/cgi-bin/koha/(C4|debian|etc|installer/data|install_misc|Koha|misc|selenium|t|test|tmp|xt)/|\.PL$ /notfound [PT]
18 RewriteCond %{QUERY_STRING} (.*?)(?:[A-Za-z0-9_-]+)=&(.*)
19 RewriteRule (.+) $1?%1%2 [N,R,NE]
20 RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/catalogue/detail.pl?biblionumber=$1 [PT]
21 RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT]
22 RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT]
23 RewriteRule ^(.*)_[0-9]{2}\.[0-9]{7}\.(js|css)$ $1.$2 [L]
25 Alias "/api" "/usr/share/koha/api"
26 <Directory "/usr/share/koha/api">
27     Options +ExecCGI +FollowSymlinks
28     AddHandler cgi-script .pl
30     SetEnv MOJO_MODE "production"
32     RewriteBase /api/
33     RewriteCond %{REQUEST_URI} !^/api/v[0-1]+/app.pl
34     RewriteRule ^(v[0-9]+)/(.*)$ /api/$1/app.pl/api/$1/$2 [L]
35 </Directory>