Add tracking IDs to your web application

With a complex multi-tier stack with HTTP requests getting proxied it can be difficult to track a request as it goes around the system. One thing you can do is enable mod_unique_id in apache – this creates a distinct environment variable UNIQUE_ID in the web server context for each incoming request. Simply loading the module …

Continue reading ‘Add tracking IDs to your web application’ »

Fix D-link webcam interface for Apache reverse proxy

This is for the DCS-932LB1 but should work on others. Add the below to your reverse proxy configuration: ProxyPreserveHost On # fixes digest authentication RequestHeader set User-Agent “Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 7.0; InfoPath.3; .NET CLR 3.1.40767; Trident/6.0; en-IN)” # Interface requires IE By doing this you can allow different browsers (Chrome, Firefox, etc) …

Continue reading ‘Fix D-link webcam interface for Apache reverse proxy’ »

Fix MIME types of proxied content in Apache

In Apache 2.2 at least, if you have downstream (eg proxied from Appserver) content with the wrong MIME type you cannot fix it with ForceType as this only works on local files. What you want to do is something like this: Header set Content-Type application/javascript This is particularly important nowadays as content sniffing is bad.