Ah, looks like I found the problem (did not test it yet), but I am serving files from zfs on linux which does not support aio. Have to recompile.by sherwood - How to...
Hello, I've compiled nginx 1.2.1 under Debian 7 Wheezy --with-file-aio, however when i set aio on; and directio 4m; website works, but can not load large files from the hdd. Do I have to tune debian somehow? When i enabled sendfile on; then website started serving large files (0.1GB-10GB). So does AIO work or not? How can i confirm it? user www-data; pid /var/run/nginx.pid; worker_prioriby sherwood - How to...
Solved! add_header Content-Type "application/octet-stream"; set_by_lua $filename "return ngx.decode_base64(ngx.var['arg_f'])"; add_header Content-disposition "attachment; filename=\"$filename\"";by sherwood - Nginx Mailing List - Russian
Why are Russians those strangers...It is not hard to understand it, is it? Just needs a minute and patience.. Writing this to English discussion board would result in no answer at all (tried before). Anyway any suggestions on how to server files with blank space in the file name?by sherwood - Nginx Mailing List - Russian
Po serioznee pozhaluista, ya ne Russkyi :/by sherwood - Nginx Mailing List - Russian
Vot tak serviruiu faili dlja klientov: add_header Content-Type "application/octet-stream"; add_header Content-disposition "attachment; filename=\"$arg_f\""; Nu fail kachaetsja kak urlencoded... Vmesto File name.pdf kachaet File%20name.pdf, kak eto pofixit?by sherwood - Nginx Mailing List - Russian
Hello, please describe more your problem, I am unable to understand where is the problem. If you generate links via PHP so then write it in database. Or build 1 link with multiple args and in nginx if($arg_LIMIT1) { .... } if($arg_LIMIT2) { .... } and in php build link like .php?LIMIT1=hehe&LIMIT2=hmm and so on, you can parse all args from URI to NGINX conf and in NGINX conf you can use prby sherwood - How to...
How to make possible something like this? location /download/ { limit_conn addr 2; if ($arg_C) { limit_conn addr 1; } } Gives me an error: Restarting nginx: nginx: "limit_conn" directive is not allowed here in /etc/nginx/sites-enabled/www.mypage.com:60by sherwood - How to...
![]() |
![]() |
![]() |
![]() |
|