fairycat

Created:
Updated:

nginx + fpm 取消运行指定目录的 php

设置相关目录的正则表达式位置,这个设置需要设置在转发php的正则表达式前

    location ~ ^/storage/.*[^/]\.php(/|$)
    {
        types {
            text/plain  php;
        }
        expires 12h;
        error_log /dev/null;
        access_log /dev/null;
    }