Nginx mod_rewrite and prestashop ecommerce

dandumit

Member
May 5, 2021
9
0
1
Bucharest
cPanel Access Level
Website Owner
Hello,
I would like to activate Nginx in front of apache because I understood that shines serving static content like images.
However I use Prestashop ecommerce solution and files are stored under a rule on file sistem like picture id (let's say 123456) it's stored on /img/1/2/3/4/5/picture.jpg

I would need to translate those rules for static assets (other than dynamic content) to Nginx config otherwise will call Apache all the time and there will be no benefit.

Is it possible ?

Thank you,
Daniel
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
14,399
2,255
363
cPanel Access Level
Root Administrator
Hey there! I'm not sure it is necessary to make any changes to the configuration. By default, NGINX reverse proxies to Apache and caches all requests, so if things are working well under Apache I'd expect them to work well under Nginx, but just faster since the queries will be cached.

I'd recommend just trying things as-is to see if you notice any performance improvements.