discuz X 的php最小化安全配置,只在特定目录允许php执行,禁止木马运行

 location ~ ^/((api|archiver)/.*|(install|uc_server)/[^/]+|[^/]+)\.php$
    {
        fastcgi_pass  127.0.0.1:9000;
        fastcgi_index index.php;
        include fcgi.conf;
        fastcgi_param SCRIPT_FILENAME  $documnet_root$fastcgi_script_name;
    }

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>