Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't make minify rewrite work #16

Open
hubrix opened this issue Mar 6, 2013 · 2 comments
Open

can't make minify rewrite work #16

hubrix opened this issue Mar 6, 2013 · 2 comments

Comments

@hubrix
Copy link

hubrix commented Mar 6, 2013

I simply can't get this rewrite to work, perhaps someone who understands nginx better than i do can help, from what i can tell it's ignoring the existance of this rewrite
i've tried it in a bunch of places

rewrite  ^/wp-content/cache/minify-(.+?)-(.*?)\.(css|js)$ /wp-content/plugins/minify/make.php?hash=$1&type=$3&incr=$2 break;

putting it the css/js location causes it to serve the make.php file instead of processing it.

 location ~ \.(css|js|htc)$ {
    #rewrite  ^/wp-content/cache/minify-(.+?)-(.*?)\.(css|js)$ /wp-content/plugins/minify/make.php?hash=$1&type=$3&incr=$2 break; 
    try_files       $uri =404;
    expires         max;
    add_header      Pragma "public";
    add_header      Cache-Control "max-age=31536000, public, must-revalidate, proxy-revalidate";
    #access_log      off;
  }
@luisherranz
Copy link
Contributor

Did you try asking on stackoverflow?

@mchung
Copy link
Owner

mchung commented Mar 9, 2013

I went down this path and fell into the same rabbit hole. It's on the TODO list, so please let us know what you find. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants