Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Директории с точками (.) в в	ыводе autoindex
 
 
Добрый день.
Подскажите как побороть эту проблему.
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 
получаю нормальный листинг, однако, если внутри встречается директория с 
точкой, то при попытке входа в неё получаю 403 ошибку в браузере и 
соответствующую ошибку в логах.
 directory index of "/mnt/data/s400/shooter/torrents/2012.DVD9/" is forbidden
Переименовывание директории в любое другое имя (например просто mv 2012.DVD9 
2012DVD9) приводит к нормальному доступу.
Posted at Nginx Forum: http://forum.nginx.org/read.php?21,50132,50132#msg-50132
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
 
 |