Il y a 389 articles et 19 utilisateurs inscrits (ce bandeau est défini dans MediaWiki:Sitenotice)
« Configurer iipimage » : différence entre les versions
Aller à la navigation
Aller à la recherche
création+catégories |
m configuration apache |
||
| Ligne 1 : | Ligne 1 : | ||
Voir la | Voir la [http://iipimage.sourceforge.net/documentation/server/ documentation IIPimage officielle] pour la procédure d'installation du serveur. | ||
== Installation == | == Installation == | ||
<syntaxhighlight lang="bash">sudo a2enmod fastcgi iipsrv</syntaxhighlight> | <syntaxhighlight lang="bash">sudo a2enmod fastcgi iipsrv</syntaxhighlight> | ||
== Configuration apache == | |||
=== Configuration du module IIPsrv === | |||
<syntaxhighlight lang="apache"> | |||
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 | |||
</syntaxhighlight> | |||
=== Virtual hosts === | |||
Les lignes suivantes redirige les requêtes de la visionneuse vers le serveur IIP-image. On les placera avant les proxyPass de {{tomcat}}. | |||
<syntaxhighlight lang="apache"> | |||
ProxyPass /cgi-bin/iipsrv.fcgi http://localhost/cgi-bin/iipsrv.fcgi | |||
ProxyPassReverse /cgi-bin/iipsrv.fcgi http://localhost/cgi-bin/iipsrv.fcgi | |||
</syntaxhighlight> | |||
== Résolution de problème == | == Résolution de problème == | ||
| Ligne 7 : | Ligne 50 : | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<syntaxhighlight lang="bash">sudo a2enmod proxy proxy_http</syntaxhighlight> | <syntaxhighlight lang="bash">sudo a2enmod proxy proxy_http</syntaxhighlight> | ||
<ref>[http://blogmotion.fr/systeme/no-protocol-handler-error-5393 ReverseProxy : No protocol handler was valid for the URL]</ref> | (cf. <ref>[http://blogmotion.fr/systeme/no-protocol-handler-error-5393 ReverseProxy : No protocol handler was valid for the URL]</ref>) | ||
== Références == | == Références == | ||
Version du 8 janvier 2013 à 09:34
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/>