index bug?

Dmitriy Yermakov dyer at sut.ru
Tue Jun 27 20:25:12 MSD 2006


Hi,

непонятки

        location /awstats/ {
                index awstats.doo.main.html;
                autoindex  on;
                autoindex_exact_size on;
                autoindex_localtime on;
                root  /www/doo.main;
	}

$ pwd
/www/doo.main/awstats
$ ls -al index.html awstats.doo.main.html
-rw-r--r--  1 root  wheel  91570 Jun 27 17:54 awstats.doo.main.html
lrwxr-xr-x  1 root  wheel     51 Jun 27 20:15 index.html -> awstats.doo.main.html

убираем index.html - 
2006/06/27 20:15:08 [error] 72126#0: *15547 directory index of "/www/doo.main/awstats/" is forbidden, client: 192.168.10.10,
 server: www.doo.main, URL: "/awstats/", host: "www.doo.main"


-- 
Dmitriy Yermakov, CCS SUT
dyer at sut.ru





More information about the nginx-ru mailing list