Il y a 389 articles et 19 utilisateurs inscrits (ce bandeau est défini dans MediaWiki:Sitenotice)

Configurer iipimage

De AJLSM
Version datée du 8 janvier 2013 à 09:34 par Groche (discussion | contributions) (configuration apache)
Aller à la navigation Aller à la recherche

Voir la documentation IIPimage officielle pour la procédure d'installation du serveur.

Installation

sudo a2enmod fastcgi iipsrv

Configuration apache

Configuration du module IIPsrv

ScriptAlias /fcgi-bin/ "/usr/lib/cgi-bin/"
ScriptAlias /cgi-bin/ "/usr/lib/cgi-bin/"

# Set the options on that directory
#<Directory "/fcgi-bin/">
<Directory "/usr/lib/cgi-bin/">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

<Directory "/cgi-bin/">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

# Set the handler
AddHandler fastcgi-script fcg fcgi fpl

# Initialise the FCGI server - set some default values
FastCgiServer /usr/lib/cgi-bin/iipsrv.fcgi \
-initial-env LOGFILE=/var/log/iipsrv.log \
-initial-env VERBOSITY=5 \
-initial-env JPEG_QUALITY=50 \
-initial-env MAX_IMAGE_CACHE_SIZE=10 \
-initial-env MAX_CVT=3000 \
-initial-env MEMCACHED_SERVERS=localhost

Virtual hosts

Les lignes suivantes redirige les requêtes de la visionneuse vers le serveur IIP-image. On les placera avant les proxyPass de Apache Tomcat.

    ProxyPass /cgi-bin/iipsrv.fcgi  http://localhost/cgi-bin/iipsrv.fcgi
    ProxyPassReverse /cgi-bin/iipsrv.fcgi   http://localhost/cgi-bin/iipsrv.fcgi

Résolution de problème

[Fri Dec 07 14:58:51 2012] [warn] proxy: No protocol handler was valid for the URL /cgi-bin/iipsrv.fcgi. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
sudo a2enmod proxy proxy_http

(cf. <ref>ReverseProxy : No protocol handler was valid for the URL</ref>)

Références

<references/>