From: Gustaf N. <ne...@wu...> - 2013-06-19 06:22:37
|
Dear all, my sample code had a small mistake ns_register_filter preauth POST * proxy::upstream -target https://localhost:8443 {-timeout 5:0} should of course read as ns_register_filter preauth POST * proxy::upstream -target https://localhost:8443 -timeout 5:0 Sorry for the confusion -gn Am 18.06.13 12:28, schrieb Gustaf Neumann: > ... > tcl/proxy.tcl > =================================================================================== > # Tiny Reverse Proxy > # > # - deliver from upstream http and https server (spooling of large content) > # - delivery of local content (optionally compressed) > # - obtain statistics via nsstats from the proxy server > # > # -Gustaf Neumann (June 2013) > # > # > # To get feedback from the proxy, we want to execute e.g. nsstats.tcl, > # which is provided in the proxy-admin directory > # > ns_register_tcl GET /proxy-admin/*.tcl > > # > # Deliver images from the local files > # > ns_register_filter preauth GET /img/* proxy::local > > ns_register_filter preauth GET * proxy::upstream -target https://localhost:8443 > ns_register_filter preauth POST * proxy::upstream -target https://localhost:8443 {-timeout 5:0} > > ... |