Quantcast
Channel: Plesk Forum
Viewing all articles
Browse latest Browse all 46080

Configure Nginx to cache PHP generated files from PHP-FPM engine

$
0
0
Guys,

Happy new year
This is my first post in this forum.

Today i have found a problem in configuring nginx for caching html files that are generating from Apache FPM engine.

I first used this code and added it to /var/www/vhosts/system/DOMAINNAME/conf/vhost_nginx.conf.


fastcgi_cache_path /tmp/cache levels=1:2 keys_zone=MYAPP:100m inactive=60m;
fastcgi_cache_key "$scheme$request_method$host$request_uri";

server {

server_name "DOMAINNAME";
root...

Configure Nginx to cache PHP generated files from PHP-FPM engine

Viewing all articles
Browse latest Browse all 46080


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>