SatelliteWP / rocket-nginx

Rocket-Nginx is a Nginx configuration that makes WP-Rocket even faster by serving static pages directly without loading WordPress or PHP.
MIT License
579 stars 129 forks source link

apache and mod_rewrite #202

Closed fidoboy closed 12 months ago

fidoboy commented 12 months ago

I've noticed that WP Rocket adds a section with mod_rewrite rules to get the cache file bypassing WordPress. My question is: does rocket-nginx works if this rule is removed? It's needed to get rocket-nginx doing his work? My setup is nginx configured as reverse proxy and apache with php-fpm

maximejobin commented 12 months ago

In theory, if Nginx is used as a reverse proxy, it will be called before Apache. Therefore, I don't think you need to alter anything.