# $Id: httpd.conf,v 1.4 2004/02/26 17:46:00 nik Exp $ # You might want to set up an alias if your pictures are outside your normal # document root #Alias /pics/ "/path/to/your/pictures/" # You might want to set up an alias to the stylesheets #Alias /ax-app-sheets/ "/path/to/the/stylesheets/" # This is required PerlModule AxKit SetHandler axkit AxGzipOutput On AddHandler axkit .xml .xsp AxAddStyleMap text/xsl Apache::AxKit::Language::LibXSLT AxAddStyleMap application/x-xpathscript Apache::AxKit::Language::XPathScript AxHandleDirs On # This next plugin is optional. If enabled, you will be able to use the # AxStyleName directive (see later) to generate different output formats. AxAddPlugin Apache::AxKit::StyleChooser::QueryString AxAddPlugin Apache::AxKit::Plugin::QueryStringCache AxAddPlugin AxKit::App::Gallery::Plugin AxContentProvider AxKit::App::Gallery::Provider # -- Processing proofsheets (directory indices) # # Change "_changeme_" in the paths to the location of the stylesheets. # If you created an alias (e.g., the "/ax-app-sheets/" example above) then # use the alias name here. # This removes directories and files that we don't want to process AxAddRootProcessor application/x-xpathscript \ /_changeme_/scrubfilelist.xps \ {http://axkit.org/2002/filelist}filelist # Sort the filelist AxAddRootProcessor text/xsl \ /_changeme_/sortfilelist.xsl \ {http://axkit.org/2002/filelist}filelist # This converts the filelist to the basic structure AxAddRootProcessor text/xsl \ /_changeme_/filelist2proofsheet.xsl \ {http://axkit.org/2002/filelist}filelist # This trims the proofsheet to just the images and directories # to display, based on the current page number that's being shown, # and the ImagesPerProofSheet variable AxAddRootProcessor application/x-xpathscript \ /_changeme_/trimproofsheet.xps \ {http://axkit.org/2002/filelist}filelist # This adds additional meta information about the location of # the files and directories to the proofsheet AxAddRootProcessor application/x-xpathscript \ /_changeme_/addconfig.xps \ {http://axkit.org/2002/filelist}filelist # Extract the image information and store it in the cache # directories AxAddRootProcessor application/x-xpathscript \ /_changeme_/extractimageinfo.xps \ {http://axkit.org/2002/filelist}filelist # Merge the extracted image info in to the main proofsheet # document AxAddRootProcessor text/xsl \ /_changeme_/mergeimageinfo.xsl \ {http://axkit.org/2002/filelist}filelist # Merge in user-maintained meta information (captions, etc) # # ... # And finally convert the proofsheet to HTML # If you only want to generate HTML, use this directive AxAddRootProcessor text/xsl \ /_changeme_/proofsheet2html.xsl \ {http://axkit.org/2002/filelist}filelist # If you want to generate different output formats, depending on the # value of the 'style' parameter, try these. They enable support for # HTML output, RSS (with 'style=rss' on the URL), and XML (with 'style=xml' # on the URL) # # You will need to comment out the AxAddRootProcessor directive immediately # before this one. # # AxAddRootProcessor text/xsl \ # /_changeme_/proofsheet2html.xsl \ # {http://axkit.org/2002/filelist}filelist # # # AxAddRootProcessor text/xsl \ # /_changeme_/proofsheet2rss.xsl \ # {http://axkit.org/2002/filelist}filelist # # # AxAddRootProcessor text/xsl \ # /_changeme_/identity.xsl \ # {http://axkit.org/2002/filelist}filelist # # -- Processing imagesheets (single images) # Extract the image information and store it in the cache # directories AxAddRootProcessor application/x-xpathscript \ /_changeme_/extractimageinfo.xps \ imagesheet AxAddRootProcessor text/xsl \ /_changeme_/mergeimageinfo.xsl \ imagesheet # If you only want to generate HTML, use this directive AxAddRootProcessor text/xsl \ /_changeme_/imagesheet2html.xsl \ imagesheet # If you want to generate different output formats, depending on the # value of the 'style' parameter, try these. They enable support for # HTML output, and XML (with 'style=xml' on the URL). I didn't see a # need for per-image RSS support, so haven't written an imagesheet2rss.xsl # stylesheet. If you need this, and have written one, feel free to send # it to me for inclusion. # # You will need to comment out the AxAddRootProcessor directive immediately # before this one. # # AxAddRootProcessor text/xsl \ # /_changeme_/imagesheet2html.xsl \ # imagesheet # # # AxAddRootProcessor text/xsl \ # /_changeme_/identity.xsl \ # imagesheet # # -- Configure the gallery PerlSetVar ProofSheetColumns 5 PerlSetVar ImagesPerProofSheet 20 PerlSetVar GalleryCache /var/tmp/g2 PerlSetVar GallerySizes '133 640 800 1024 full' PerlSetVar GalleryThumbQuality preview