Skip to content

Instantly share code, notes, and snippets.

@denics
Created June 30, 2014 13:42
Show Gist options
  • Save denics/b11d3995ab9fcb55bb53 to your computer and use it in GitHub Desktop.
Save denics/b11d3995ab9fcb55bb53 to your computer and use it in GitHub Desktop.
Example of apache2 configuration for running IIPImage on MacOS using Brew. More info: http://iipimage.sourceforge.net/documentation/server/
#Install mod_fastcgi with Brew https://github.com/Homebrew/homebrew-apache/
LoadModule fastcgi_module /usr/local/Cellar/mod_fastcgi/2.4.6/libexec/mod_fastcgi.so
# Create a directory for the iipsrv binary
ScriptAlias /fcgi-bin/ "/usr/local/Library/WebServer/CGI-Executables/"
# Set the module handler
AddHandler fastcgi-script fcgi
# Initialise some variables for the FCGI server
FastCgiServer /usr/local/Library/WebServer/CGI-Executables/iipsrv.fcgi \
-initial-env LOGFILE=/tmp/iipsrv.log \
-initial-env VERBOSITY=5 \
-initial-env MAX_IMAGE_CACHE_SIZE=10 \
-initial-env JPEG_QUALITY=75 \
-initial-env MAX_CVT=3000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment