Welcome! Log In Create A New Profile

Advanced

Директории с точками (.) в выводе autoindex

February 03, 2010 03:53PM
Добрый день.

Подскажите как побороть эту проблему.

nginx version: nginx/0.8.33
TLS SNI support disabled
configure arguments: --prefix=/usr/local/etc/nginx --with-cc-opt='-I /usr/local/include' --with-ld-opt='-L /usr/local/lib' --conf-path=/usr/local/etc/nginx/nginx.conf --sbin-path=/usr/local/sbin/nginx --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx-error.log --user=www --group=www --http-client-body-temp-path=/var/tmp/nginx/client_body_temp --http-proxy-temp-path=/var/tmp/nginx/proxy_temp --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp --http-log-path=/var/log/nginx-access.log --with-http_realip_module --with-http_ssl_module --with-http_stub_status_module --with-pcre

FreeBSD 6.4-STABLE i386

В конфиге вот такая строка:
location /torrents {
root /mnt/data/s400/shooter;
autoindex on;
charset utf-8;

когда запрашиваю
http://hostname/torrents

получаю нормальный листинг, однако, если внутри встречается [b]директория[/b] с точкой, то при попытке входа в неё получаю 403 ошибку в браузере и соответствующую ошибку в логах.

directory index of "/mnt/data/s400/shooter/torrents/2012.DVD9/" is forbidden

Переименовывание директории в любое другое имя (например просто mv 2012.DVD9 2012DVD9) приводит к нормальному доступу.
Subject Author Posted

Директории с точками (.) в выводе autoindex

azhiltsov February 03, 2010 03:53PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 101
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