1

Will my nginx reverse proxy cache work?

view story
linux-howto

http://askubuntu.com – I have a website running Nginx and Apache, ...Apache deals with PHP files, and Nginx the html static files, we have now changed the site so there are no html static files, only PHP files and this has heavy load on the server, so I wanted to put the nginx as a reverse proxy cache, so that the php files coming from Apache will be cached and delivered static... can anyone with expertise let me know if the following will work or what I need to change? ... proxy_cache_path /var/www/cache levels=1:2 keys_zone=my-cache:8m max_size=1000m inactive=600m; proxy_temp_path /var/www/cache/tmp; # (HowTos)