Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Не работает try_files на 0.7.38 - поч ему?
- To: nginx-ru@xxxxxxxxx
- Subject: Не работает try_files на 0.7.38 - поч ему?
- From: Flam Boyant <flamboyant2@xxxxxxxxx>
- Date: Thu, 9 Apr 2009 14:42:48 +0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=pjjNmsYeSfl1ENcYssHqHG2d01iZ7QdXxMrMZNSTLnE=; b=HM8LjrBoT9cX9PWirqW/rm/iDcZbvlhoJU7PfrkCU/ha4PWfI7cGy6m4Cj+/SC2CAv oDFtT+TUBKmvu8R/HRy2JtCHYqWVG31oJF+1qf8ZFMxg1+hxxK0O9sCLYvt1RcJz3bgi AfgyECrIdG3O27EUkQgSLYb838BPv1p++iHVA=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=pU6ZgQt5hW5rwN6LWAMDEKV5vIBWj/xeXLS//Vtdyc0rpaYxZPhqHMIqMW7SZUfcgD P2rQhevh6IbQW47gbc6JDdRDdw3UDe3GES25N6K99JEBTuiDQgTzC9F7Yies/AMIsFEZ X6auYIzrkbstIf061UJPMnS78wes9gn83zBaI=
Всем привет!
FreeBSD 6.2, nginx 0.7.38 из портов. Не могу заставить работать try_files Не ругается, но делает вид, что файлов в /mnt/md/ вообще нет - сразу лезет на бекенд. Конфиг ниже. ------
error_log /var/log/nginx/error.log info;
pid /var/run/nginx.pid;
events { worker_connections 4096; kqueue_changes 1024; }
http { include /usr/local/etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" $uri ' '"$status/$upstream_status" $body_bytes_sent '
'"$host" $request_time "$upstream_addr/$upstream_response_time"';
access_log /var/log/nginx/access.log main;
sendfile on; tcp_nopush on;
tcp_nodelay on; keepalive_timeout 65 20;
client_header_timeout 3m; client_body_timeout 3m; send_timeout 3m;
client_header_buffer_size 4k; large_client_header_buffers 4 4k;
client_max_body_size 1m; client_body_buffer_size 128k;
output_buffers 4 32k; postpone_output 1460;
gzip on; gzip_min_length 1024; gzip_buffers 12 32k; gzip_types text/plain application/xml text/css application/x-_javascript_;
proxy_connect_timeout 10; proxy_send_timeout 90; proxy_read_timeout 90; proxy_buffer_size 128k; proxy_buffers 4 128k; proxy_busy_buffers_size 128k; proxy_temp_file_write_size 128k;
proxy_ignore_client_abort on;
open_file_cache max=10000 inactive=20s; open_file_cache_valid 30s; open_file_cache_min_uses 2; open_file_cache_errors on;
server {
listen 80 default; server_name хххх;
log_not_found on;
location / { try_files /mnt/md$uri @root; auth_basic "Restricted";
auth_basic_user_file /usr/local/etc/apache22/http.passwd; }
location @root { root /ftp/pub; fancyindex on; fancyindex_exact_size on;
fancyindex_header /index/header_n.html; fancyindex_footer /index/footer_n.html; auth_basic "Restricted"; auth_basic_user_file /usr/local/etc/apache22/http.passwd;
}
location = /_.gif { empty_gif; }
error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/local/www/nginx;
}
location ~ /\.ht { deny all; } } }
|