|
Lines 27-32
Link Here
|
| 27 |
# OVERRIDE_SYSPREF_NAMES for your staff intranet vhost |
27 |
# OVERRIDE_SYSPREF_NAMES for your staff intranet vhost |
| 28 |
# SetEnv OVERRIDE_SYSPREF_PrefName Value |
28 |
# SetEnv OVERRIDE_SYSPREF_PrefName Value |
| 29 |
|
29 |
|
|
|
30 |
##REVERSE PROXY REQUESTS TO THE KOHA API DAEMON |
| 31 |
Alias /v1/doc __INTRANET_CGI_DIR__/api/v1/doc |
| 32 |
Alias /v1/swagger.json "__INTRANET_CGI_DIR__/api/v1/swagger.json" |
| 33 |
|
| 34 |
ProxyRequests Off #Disable anonymous forward proxying |
| 35 |
ProxyPreserveHost On |
| 36 |
ProxyPass /v1/doc ! |
| 37 |
ProxyPass /v1/swagger.json ! |
| 38 |
ProxyPass /v1/ http://localhost:8081/v1/ keepalive=On |
| 39 |
ProxyPassReverse /v1/ http://localhost:8081/v1/ |
| 40 |
##REVERSE PROXYING OK |
| 41 |
|
| 30 |
<Directory "__OPAC_WWW_DIR__"> |
42 |
<Directory "__OPAC_WWW_DIR__"> |
| 31 |
Options -Indexes |
43 |
Options -Indexes |
| 32 |
</Directory> |
44 |
</Directory> |
|
Lines 144-149
Link Here
|
| 144 |
ErrorDocument 404 /cgi-bin/koha/errors/404.pl |
156 |
ErrorDocument 404 /cgi-bin/koha/errors/404.pl |
| 145 |
ErrorDocument 500 /cgi-bin/koha/errors/500.pl |
157 |
ErrorDocument 500 /cgi-bin/koha/errors/500.pl |
| 146 |
|
158 |
|
|
|
159 |
##REVERSE PROXY REQUESTS TO THE KOHA API DAEMON |
| 160 |
Alias /v1/doc __INTRANET_CGI_DIR__/api/v1/doc |
| 161 |
Alias /v1/swagger.json "__INTRANET_CGI_DIR__/api/v1/swagger.json" |
| 162 |
|
| 163 |
ProxyRequests Off #Disable anonymous forward proxying |
| 164 |
ProxyPreserveHost On |
| 165 |
ProxyPass /v1/doc ! |
| 166 |
ProxyPass /v1/swagger.json ! |
| 167 |
ProxyPass /v1/ http://localhost:8081/v1/ keepalive=On |
| 168 |
ProxyPassReverse /v1/ http://localhost:8081/v1/ |
| 169 |
##REVERSE PROXYING OK |
| 170 |
|
| 147 |
<Directory "__INTRANET_WWW_DIR__"> |
171 |
<Directory "__INTRANET_WWW_DIR__"> |
| 148 |
Options -Indexes |
172 |
Options -Indexes |
| 149 |
</Directory> |
173 |
</Directory> |
|
Lines 216-237
Link Here
|
| 216 |
RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT] |
240 |
RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT] |
| 217 |
</IfModule> |
241 |
</IfModule> |
| 218 |
</VirtualHost> |
242 |
</VirtualHost> |
| 219 |
|
|
|
| 220 |
<VirtualHost __WEBSERVER_IP__:__WEBSERVER_PORT__> |
| 221 |
ServerAdmin __WEBMASTER_EMAIL__ |
| 222 |
DocumentRoot __INTRANET_CGI_DIR__/api |
| 223 |
ServerName api.__WEBSERVER_HOST__:__WEBSERVER_PORT__ |
| 224 |
SetEnv KOHA_CONF "__KOHA_CONF_DIR__/koha-conf.xml" |
| 225 |
SetEnv PERL5LIB "__PERL_MODULE_DIR__" |
| 226 |
|
| 227 |
<Directory __INTRANET_CGI_DIR__/api> |
| 228 |
Options +ExecCGI +FollowSymlinks |
| 229 |
AddHandler cgi-script .cgi |
| 230 |
|
| 231 |
RewriteEngine on |
| 232 |
RewriteCond %{REQUEST_FILENAME} !-f |
| 233 |
RewriteCond %{REQUEST_FILENAME} !-d |
| 234 |
RewriteCond %{DOCUMENT_ROOT}/$1/script.cgi -f |
| 235 |
RewriteRule ^(.*?)/.* $1/script.cgi/$0 [L] |
| 236 |
</Directory> |
| 237 |
</VirtualHost> |
| 238 |
- |