View | Details | Raw Unified | Return to bug 13799
Collapse All | Expand All

(-)a/etc/koha-httpd.conf (-20 / +22 lines)
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
   ProxyPass        /v1/doc !
36
   ProxyPass        /v1/swagger.json !
37
   ProxyPass        /v1/  http://localhost:8081/
38
   ProxyPassReverse /v1/  http://localhost:8081/
39
   ##REVERSE PROXYING OK
40
30
   <Directory "__OPAC_WWW_DIR__">
41
   <Directory "__OPAC_WWW_DIR__">
31
      Options -Indexes
42
      Options -Indexes
32
   </Directory>
43
   </Directory>
Lines 144-149 Link Here
144
   ErrorDocument 404 /cgi-bin/koha/errors/404.pl
155
   ErrorDocument 404 /cgi-bin/koha/errors/404.pl
145
   ErrorDocument 500 /cgi-bin/koha/errors/500.pl
156
   ErrorDocument 500 /cgi-bin/koha/errors/500.pl
146
157
158
   ##REVERSE PROXY REQUESTS TO THE KOHA API DAEMON
159
   Alias /v1/doc __INTRANET_CGI_DIR__/api/v1/doc
160
   Alias /v1/swagger.json "__INTRANET_CGI_DIR__/api/v1/swagger.json"
161
162
   ProxyRequests Off #Disable anonymous forward proxying
163
   ProxyPass        /v1/doc !
164
   ProxyPass        /v1/swagger.json !
165
   ProxyPass        /v1/  http://localhost:8081/
166
   ProxyPassReverse /v1/  http://localhost:8081/
167
   ##REVERSE PROXYING OK
168
147
   <Directory "__INTRANET_WWW_DIR__">
169
   <Directory "__INTRANET_WWW_DIR__">
148
      Options -Indexes
170
      Options -Indexes
149
   </Directory>
171
   </Directory>
Lines 216-237 Link Here
216
     RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT]
238
     RewriteRule ^/issn/([^\/]*)/?$ /search?q=issn:$1 [PT]
217
   </IfModule>
239
   </IfModule>
218
</VirtualHost>
240
</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
- 

Return to bug 13799