Understood Diretive Location and Regex (concept question).

Labs Ocozzi rjtogy1966 at gmail.com
Wed Sep 19 10:44:46 UTC 2018


Dears, in me Lab i have nginx work fine, but i dont understood the 
diretive location with regex "~ /\. " "~*  \." and
"~ \.php$" bellow examples in me enviroment.



        location ~ /\. {
                 deny all;
                 access_log off;
                 log_not_found off;
        }

        location ~ \.php$ {
                 try_files $uri =404;
                 include /etc/nginx/fastcgi_params;
                 fastcgi_pass 127.0.0.1:9000;
                 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        }



        location ~ /\. {
                 deny all;
                 access_log off;
                 log_not_found off;
        }

-- 
Att,
BR-RJ.
Togy Silva Ocozzy
e-mail: rjtogy1966 at gmail.com
LABS OCOZZI PE.



---
Este email foi escaneado pelo Avast antivírus.
https://www.avast.com/antivirus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20180919/d8643c40/attachment.html>


More information about the nginx mailing list