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 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.