Last change
on this file since 942 was 933, checked in by Kris Deugau, 2 years ago |
/trunk
Merge inexplicably unmerged get-pool-IPs-as-CSV feature from production
Fix long-missing VLAN display snafu on allocation update "done OK" page
Update @INC-munger in main.cgi
Update copyright block and style
|
File size:
865 bytes
|
Rev | Line | |
---|
[933] | 1 | # Sample showing required Apache directives for some features
|
---|
| 2 |
|
---|
| 3 | ## Handle a certain link as if it were a plain CSV file instead of a script
|
---|
| 4 | # Putting these directives in .htaccess requires "AllowOverride FileInfo Limit"
|
---|
| 5 | # Requires rewrite, proxy_http ("a2enmod rewrite proxy_http" will enable these
|
---|
| 6 | # and any dependencies on many installations)
|
---|
| 7 | RewriteEngine On
|
---|
| 8 |
|
---|
| 9 | # IP pool lists
|
---|
| 10 | # Allow the proxied request.
|
---|
| 11 | # Set the IP to the IP your IPDB instance listens on. Depending on configuration
|
---|
| 12 | # it may be possible to use a 127. IP for this instead.
|
---|
| 13 | <FilesMatch "pool2csv.pl">
|
---|
| 14 | Order deny,allow
|
---|
| 15 | Deny from all
|
---|
| 16 | Allow from 192.0.2.1
|
---|
| 17 | Satisfy any
|
---|
| 18 | </FilesMatch>
|
---|
| 19 | # Do the URL rewriting to channel the request for the .csv back into the CGI script
|
---|
| 20 | RewriteCond %{REQUEST_URI} (\d+)-[\w\s]+.csv
|
---|
| 21 | RewriteRule (\d+)-[\w\s]+.csv http://%{HTTP_HOST}/cgi-bin/pool2csv.pl?pool=$1 [P]
|
---|
Note:
See
TracBrowser
for help on using the repository browser.