...
Code Block | ||||
---|---|---|---|---|
| ||||
ScriptAlias /iipsrv /usr/libexec/iipsrv/iipsrv.fcgi # Set our environment variables for the IIP server DefaultInitEnv VERBOSITY "6" DefaultInitEnv LOGFILE "/data/logs/httpd/iipsrv.log" DefaultInitEnv MAX_IMAGE_CACHE_SIZE "10" DefaultInitEnv JPEG_QUALITY "90" DefaultInitEnv MAX_CVT "2500" DefaultInitEnv FILESYSTEM_PREFIX "/data/iiif/references/" DefaultInitEnv CORS "*" # Change the following line when going into production #DefaultInitEnv BASE_URL "http://ddb-p1-vmbinarytmp.fiz-karlsruhe.de:8001/image/2/" DefaultInitEnv BASE_URL "https://iiif.deutsche-digitale-bibliothek.de/image/2/" DefaultInitEnv EMBED_ICC "0" # Define the idle timeout as unlimited and the number of # processes we want FcgidIdleTimeout -1 FcgidMaxProcessesPerClass 1 <Directory /usr/libexec/iipsrv/> <IfModule mod_authz_core.c> # Apache 2.4 Require all granted </IfModule> <IfModule !mod_authz_core.c> # Apache 2.2 Order allow,deny Allow from All </IfModule> </Directory> |
Rewrite-Rules in proxy.conf eintragen:
Code Block | ||||
---|---|---|---|---|
| ||||
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/image/2/[0-9a-f]{2}/[0-9a-f]{2}/
RewriteRule ^/image/2/([0-9a-f]{2})/([0-9a-f]{2})/([0-9a-f-]*)/(.*) http://localhost:8001/iipsrv?IIIF=$1/$2/$3/$4 [P,L]
RewriteCond %{REQUEST_URI} ^/image
RewriteRule ^/image/2/(([0-9a-f]{2})([0-9a-f]{2})[0-9a-f-]*)/(.*) http://localhost:8001/iipsrv?IIIF=$2/$3/$1/$4 [P,L]
|
Verzeichnis /data/iiif mounten (wird auch von den Spark-Servern verwendet)
...