Welcome! Log In Create A New Profile

Advanced

Understood Diretive Location and Regex (concept question).

Labs Ocozzi
September 19, 2018 06:46AM
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@gmail.com
LABS OCOZZI PE.



---
Este email foi escaneado pelo Avast antivírus.
https://www.avast.com/antivirus
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Understood Diretive Location and Regex (concept question).

Labs Ocozzi September 19, 2018 06:46AM

Re: Understood Diretive Location and Regex (concept question).

Anoop Alias September 19, 2018 06:52AM

Re: Understood Diretive Location and Regex (concept question).

Labs Ocozzi September 19, 2018 07:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 322
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready