Hi, I'm new to using Nginx and I am stumped, here is my problem;
I have setup Nginx as a reverse proxy for apache (debian) and everything is working fine, my server load has gone down and response times too.
I currently have Nginx serving my static content / images and passing anything else back to apache.
Now comes the problem:
Some of the content being generated via php/apache is very intensive and needs caching. The pages I need to be cached are being generated using apache rewrites and they are being mapped to .html
e.g. /all-pages-to-cache-are-like-this.html
and all none-html extension pages to be handled normally by apache.
However I have tied unsuccessfully to set this up, I tried using a regex / location block, resulting in errors due to proxy_ options not allowed in a location/regex block.
Also Apache will be sending no-cache headers along with the PHP content (as it should) which would cause Nginx proxy module to leave it uncached anyway..
so in short: I am trying to selectively (any url with .html extension) cache PHP generated content for a short period (5m)
Any help/advice on the issue would be much appreciated! :-D
Edited 1 time(s). Last edit at 04/08/2011 10:22AM by andrewsuk.