Using apache as a portal server – Fluke Computer Accessories User Manual
Page 64

User’s Guide – version 3.5
NetFlow Tracker
64
Using Apache as a Portal Server
The Apache web server supports several directives in its configuration file
(httpd.conf) that allow it to be used as a programmable proxy server:
RewriteEngine On
This enables the URL rewriting module.
RewriteRule ^/tracker1/report1$
http://1.2.3.4/report.jsp?portalsecret=s3cr3t&acldevice=4.3.2.1&templ
id=0000 [P,L]
This sets up a rule to proxy requests for http://
access controlled request to the NetFlow Tracker server.
RewriteRule ^/tracker1/(.*)$ http://1.2.3.4/$1 [P,L,QSA]
This sets up a rule to proxy any requests for URLs starting with
http://
ProxyPassReverse /tracker1/ http://1.2.3.4/
This ensures that the HTTP redirects from NetFlow Tracker when it creates a session
for the portal and logs it in are handled correctly.