
User’s Guide – version 3.5 | NetFlow Tracker |
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://<proxy>/tracker1/report1 to an 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://<proxy>/tracker1/ to an equivalent request to the NetFlow Tracker server.
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.
64