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: 352
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready