Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 1ce39b822b5a17037f8a68a912022448 > files > 4

apache-mod_ziplook-0.99-11mdv2010.0.i586.rpm



mod_ziplook (for apache2)

by Jukka Pihl  (c) 2003
   jukka dot pihl at iki dot fi 

version: 0.99
	- has LICENSE
	- fetch option   /xxx.zip?fetch=1
	- adds version_component to server-header.

to fetch:

   - fetch mod_ziplook2  (for apache2)
		http://pihl.kumpu.org/mod_ziplook/index2.html

   - fetch unzip21 (by Gilles Vollant):
		http://www.winimage.com/zLibDll/unzip.html  (homepage)
		http://www.winimage.com/zLibDll/unzip21.zip

      (you may need to remove CR:s (\n) from source-files there 
       (they are have been in DOS/WIN format (\r\n)))

to install

	apxs -c mod_ziplook.c -lz
	cp .libs/mod_ziplook.so  $APACHE_DIR/modules


to configure (httpd.conf):

   * Add to mime-handlers in 

    AddHandler ziplook .zip
  
   * To document root directory:
     This needed to have PATH_INFO (r->path_info), which is 
     used to seek out content-type of zip-component file.

    <Directory /xxxxx/htdoc>
       ...
       ...

       ModMimeUsePathInfo On
       ...
    
    </Directory>

to test:

   cp a zip-file to document root:
	cp myzip.zip  /apache/.../htdocs/
	
   fetch it with browser:
 
	http://myhost/myzip.zip