Bug 17301 - Add callnumber to label-edit-batch.pl
[koha.git] / debian / templates / apache-shared-intranet.conf
blob211794262e7d70bfac81f870893c508c092c1088
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]
21 Alias "/api" "/usr/share/koha/api"
22 <Directory "/usr/share/koha/api">
23     Options +ExecCGI +FollowSymlinks
24     AddHandler cgi-script .pl
26     SetEnv MOJO_MODE "production"
28     RewriteBase /api/
29     RewriteCond %{REQUEST_FILENAME} !-f
30     RewriteCond %{REQUEST_FILENAME} !-d
31     RewriteCond %{DOCUMENT_ROOT}/../api/$1/app.pl -f
32     RewriteRule ^(.*?)/.* $1/app.pl/api/$0 [L]
33 </Directory>