# Sample showing required Apache directives for some features ## Handle a certain link as if it were a plain CSV file instead of a script # Putting these directives in .htaccess requires "AllowOverride FileInfo Limit" # Requires rewrite, proxy_http ("a2enmod rewrite proxy_http" will enable these # and any dependencies on many installations) RewriteEngine On # IP pool lists # Allow the proxied request. # Set the IP to the IP your IPDB instance listens on. Depending on configuration # it may be possible to use a 127. IP for this instead. Order deny,allow Deny from all Allow from 192.0.2.1 Satisfy any # Do the URL rewriting to channel the request for the .csv back into the CGI script RewriteCond %{REQUEST_URI} (\d+)-[\w\s]+.csv RewriteRule (\d+)-[\w\s]+.csv http://%{HTTP_HOST}/cgi-bin/pool2csv.pl?pool=$1 [P]