Re: аутентификация по паролю

Alex Kitschkiruk rusnginx at gmail.com
Fri Jul 8 16:22:20 MSD 2005


> > А можно ли в этой директории еще и автоматически генерируемый
> > index.html со списком файлов сделать? есть ли такая директива в
> > природе? (как у апача)
> 
> autoindex  on;

Rugaetsja...po parolju propuskaet, a index.html generirovat' ne hochet :(
403 Forbidden

2005/07/08 14:18:52 [error] 21030#0: *19 access forbidden by rule,
client: 55.55.55.55, server: server.com, URL: "/files/", host:
"server.com:8080"


        location /files/ {
            valid_referers  none  server_names  *.server.com/;
#            if ($invalid_referer) {
#                return   403;     }
            root   /srv/www/htdocs/web2/html/files;
            autoindex    on;
            auth_basic "wellcome";
            auth_basic_user_file /usr/local/nginx/conf/htpasswd;
            access_log   /usr/local/nginx/logs/access_web2_files.log   download;
        }


Kstati, a kak mozhno ubrat' v fajlah 403,404... podpis' "nginx/0.1.37"? ;)


More information about the nginx-ru mailing list