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

(-)a/debian/templates/apache-shared-intranet.conf (-4 / +2 lines)
Lines 27-34 Alias "/api" "/usr/share/koha/api" Link Here
27
    SetEnv MOJO_MODE "production"
27
    SetEnv MOJO_MODE "production"
28
28
29
    RewriteBase /api/
29
    RewriteBase /api/
30
    RewriteCond %{REQUEST_FILENAME} !-f
30
    RewriteCond %{REQUEST_URI} !^/api/v[0-1]+/app.pl
31
    RewriteCond %{REQUEST_FILENAME} !-d
31
    RewriteRule ^(v[0-9]+)/(.*)$ /api/$1/app.pl/api/$1/$2 [L]
32
    RewriteCond %{DOCUMENT_ROOT}/../api/$1/app.pl -f
33
    RewriteRule ^(.*?)/.* $1/app.pl/api/$0 [L]
34
</Directory>
32
</Directory>
(-)a/debian/templates/apache-shared-opac.conf (-4 / +2 lines)
Lines 34-41 Alias "/api" "/usr/share/koha/api" Link Here
34
    SetEnv MOJO_MODE "production"
34
    SetEnv MOJO_MODE "production"
35
35
36
    RewriteBase /api/
36
    RewriteBase /api/
37
    RewriteCond %{REQUEST_FILENAME} !-f
37
    RewriteCond %{REQUEST_URI} !^/api/v[0-1]+/app.pl
38
    RewriteCond %{REQUEST_FILENAME} !-d
38
    RewriteRule ^(v[0-9]+)/(.*)$ /api/$1/app.pl/api/$1/$2 [L]
39
    RewriteCond %{DOCUMENT_ROOT}/../api/$1/app.pl -f
40
    RewriteRule ^(.*?)/.* $1/app.pl/api/$0 [L]
41
</Directory>
39
</Directory>
(-)a/etc/koha-httpd.conf (-9 / +5 lines)
Lines 123-132 Link Here
123
123
124
       RewriteEngine On
124
       RewriteEngine On
125
       RewriteBase /api/
125
       RewriteBase /api/
126
       RewriteCond %{REQUEST_FILENAME} !-f
126
       RewriteCond %{REQUEST_URI} !^/api/v[0-1]+/app.pl
127
       RewriteCond %{REQUEST_FILENAME} !-d
127
       RewriteRule ^(v[0-9]+)/(.*)$ /api/$1/app.pl/api/$1/$2 [L]
128
       RewriteCond %{DOCUMENT_ROOT}/../api/$1/app.pl -f
128
129
       RewriteRule ^(.*?)/.* $1/app.pl/api/$0 [L]
130
     </Directory>
129
     </Directory>
131
   </IfModule>
130
   </IfModule>
132
131
Lines 250-259 Link Here
250
249
251
       RewriteEngine On
250
       RewriteEngine On
252
       RewriteBase /api/
251
       RewriteBase /api/
253
       RewriteCond %{REQUEST_FILENAME} !-f
252
       RewriteCond %{REQUEST_URI} !^/api/v[0-1]+/app.pl
254
       RewriteCond %{REQUEST_FILENAME} !-d
253
       RewriteRule ^(v[0-9]+)/(.*)$ /api/$1/app.pl/api/$1/$2 [L]
255
       RewriteCond %{DOCUMENT_ROOT}/../api/$1/app.pl -f
256
       RewriteRule ^(.*?)/.* $1/app.pl/api/$0 [L]
257
     </Directory>
254
     </Directory>
258
   </IfModule>
255
   </IfModule>
259
256
260
- 

Return to bug 21031