php and locations with regex (round 2)

Alejandro Vartabedian lists at
Tue Oct 23 19:37:32 MSD 2007

well, doing this work:

        location ~ /(app1|app2)/ {
            root   /home/website/;
            index  index.php index.html index.htm;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME 
            include        /etc/nginx/fastcgi_params;

but i'm charging to php to serve _all_ the data, dynamic and static one
is there a way to filter inside the location the php-cgi directives to
serve directly the static content and avoid overcharging php?

Alejandro Vartabedian escribió:
> ...

More information about the nginx mailing list