Bug 29458: Reorder login elements
[koha.git] / debian / templates / apache-shared-intranet.conf
1 # Apache configuration settings that are shared for every Koha instance.
2 # This file contains settings for the intranet 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 the intranet.
7
8 DocumentRoot /usr/share/koha/intranet/htdocs
9
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"
13
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]
17
18 RewriteRule ^/bib/([^\/]*)/?$ /cgi-bin/koha/catalogue/detail.pl?biblionumber=$1 [PT]
19 RewriteRule ^/isbn/([^\/]*)/?$ /search?q=isbn:$1 [PT]
20 RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT]
21 RewriteRule ^(.*)_[0-9]{2}\.[0-9]{7}\.(js|css)$ $1.$2 [L]
22
23 Alias "/api" "/usr/share/koha/api"
24 <Directory "/usr/share/koha/api">
25     Options +ExecCGI +FollowSymlinks
26     AddHandler cgi-script .pl
27
28     SetEnv MOJO_MODE "production"
29
30     RewriteBase /api/
31     RewriteCond %{REQUEST_URI} !^/api/v[0-1]+/app.pl
32     RewriteRule ^(v[0-9]+)/(.*)$ /api/$1/app.pl/api/$1/$2 [L]
33 </Directory>