Can the Nginx configuration file restrict users from requesting PHP files with -rwxrwxrwx permissions to call PHP-FPM?
漂亮男人
漂亮男人 2017-05-16 17:20:04
0
2
591

Like the title ..

Don’t want to parse PHP files with permission 777

漂亮男人
漂亮男人

reply all(2)
漂亮男人

It seems that there is no access control based on file attributes. From what I understand, your needs can really be used to control access to a certain file.

        location ~ /config.php {
            deny all;
        }
为情所困

If you don’t want access, set the file permissions to 0600

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!