Re: autoindex

Anton Kiryushkin swood fotofor.biz
16 12:29:49 MSD 2010


   :

# nginx -t
the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
configuration file /usr/local/etc/nginx/nginx.conf test is successful

    ,   .  
nginx.conf :

user www;
worker_processes 1;
worker_rlimit_nofile 80000;

events {
        worker_connections  50000;
        }

        http {
        include         /usr/local/etc/nginx/mime.types;
        default_type    application/octet-stream;
        log_format main
            '$remote_addr - $remote_user [$time_local] '
            '"$request" $status $bytes_sent '
            '"$http_referer" "$http_user_agent" '
            '"$gzip_ratio"';

        server_tokens off;
        log_format IP $remote_addr;
        reset_timedout_connection on;

       client_header_timeout   1m;
       client_body_timeout     1m;
       send_timeout            1m;
       connection_pool_size            2048;
       client_header_buffer_size       4k;
       large_client_header_buffers     4 16k;
       request_pool_size               4k;
       gzip on;
       gzip_min_length 1100;
       gzip_comp_level 9;
       gzip_buffers    4 8k;
       gzip_types      text/plain text/css;
       output_buffers  1 64k;
       postpone_output 1460;
       sendfile        on;
       tcp_nopush      on;
       tcp_nodelay     on;
       keepalive_timeout       25 15;
       ignore_invalid_headers  on;
       include /usr/local/etc/nginx/sites/*;

  }

    nginx.

2010/6/16 Igor Sysoev <igor at sysoev.ru>:
> On Wed, Jun 16, 2010 at 12:14:22PM +0400, Anton Kiryushkin wrote:
>
>>   ,  ?
>
> ,  nginx    :   - :
>
> test location: "/"
> test location: ~ "/$"
> using configuration ~ "/$"
>
>   "nginx -t" ?
>
>> 2010/6/16 bas <bas at it-core.org>:
>> > 2010/6/16 Anton Kiryushkin <swood at fotofor.biz>
>> >>
>> >>   .
>> >>     .
>> >>  :
>> >>
>> >> server {
>> >>    listen 192.168.77.1:80;
>> >>    server_name local.ru;
>> >>    error_log /var/log/nginx/local_nginx.error.log debug;
>> >>    root /tmp ;
>> >>
>> >>    location ~ /$ {
>> >>      allow 192.168.77.64;
>> >>      deny all;
>> >>      root /tmp/;
>> >>      autoindex on;
>> >>      autoindex_exact_size on;
>> >>    }
>> >>    location / {
>> >>        autoindex off;
>> >>        root /tmp/;
>> >>    }
>> >>
>> >>  }
>> >>
>> >>     192.168.77.64  192.168.77.1   403-
>> >> .    .
>> >>       ?
>> >
>> >     .
>> > http://sysoev.ru/nginx/docs/http/ngx_http_core_module.html#location
>> > _______________________________________________
>> > nginx-ru mailing list
>> > nginx-ru at nginx.org
>> > http://nginx.org/mailman/listinfo/nginx-ru
>> >
>> >
>>
>>
>>
>> --
>> Best regards,
>> Anton Kiryushkin,
>> _______________________________________________
>> nginx-ru mailing list
>> nginx-ru at nginx.org
>> http://nginx.org/mailman/listinfo/nginx-ru
>
> --
>  
> http://sysoev.ru
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru at nginx.org
> http://nginx.org/mailman/listinfo/nginx-ru
>



-- 
Best regards,
Anton Kiryushkin,


nginx-ru