Welcome! Log In Create A New Profile

Advanced

По локейшенам

agz
January 29, 2011 01:40PM
Доброго времени суток всем!

Подскажите, можно в локейшенах смешивать директории, файлы и маски? Это будет работать?
Типа такого:

location ~ /(ips_kernel|conf_global.php|/\.ht) {
deny all;
}

И вот такие конструкции для форума IPB 3.1.x:

location ~* /(cache|hooks|uploads)/.+\.php$ {
deny all;
}

location ~* /public/(resources|style_avatars|style_captcha|style_css|style_emoticons|style_extra|style_images)/.+\.php$ {
deny all;
}
Subject Author Posted

По локейшенам

agz January 29, 2011 01:40PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 106
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready