nginx location - pass certain content type to apache backend

dannym nginx-forum at
Sun May 16 01:01:25 MSD 2010

Hi all,

I have following configuration

        location ~* ^.+\.(jpg|png|mp3|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|wav|bmp|rtf|js)$ {
        root /data/www/;
        access_log off;
        expires max;
        add_header  Last-Modified: $date_gmt;

        location /get/ {
        proxy_pass http://domain-dev;

How do I tell nginx to ignore serving jpg|png|mp3 for [b]/get[/b] location and pass them to apache instead?


Posted at Nginx Forum:,87064,87064#msg-87064

More information about the nginx mailing list