minify icon indicating copy to clipboard operation
minify copied to clipboard

Rewrite rules for Nginx

Open midorinet opened this issue 12 years ago • 3 comments

Any advice about the rewrite rules for nginx?

midorinet avatar Aug 14 '14 09:08 midorinet

Hi @midorinet

I am using the following with nginx:

    location /min/ {
        rewrite ^/min/([bfg]=.+) /min/index.php?$1;
    }

tomcastleman avatar Jan 07 '15 17:01 tomcastleman

Hi @tomcastleman

I can get it running by using rule below

rewrite  ^/min/([a-z]=.*) /min/index.php?$1  last;

midorinet avatar Jan 08 '15 00:01 midorinet

Hi I tried the above 2 configuration in Nginx. But its not working I am getting 404 Not Found in browser but in Apache its working fine. I do not know whether the issue in NGINX or PHP-FPM.

My application is on Yii and compressing ac-clientscript-minify extension

Please help to solve this issue

jagafirst avatar Apr 07 '17 09:04 jagafirst