On Oct 9, 2012, at 10:03 , kaaron wrote: > Добрый день! > Только недавно начал разбираться с nginx и ничего не могу понять! > Есть задачи на сайте закрыть доступ на все файлы например с расширение .txt > но разрешить доступ к например robots.tby Igor Sysoev - Nginx Mailing List - Russian
On Oct 8, 2012, at 19:57 , Anton Zaytsev wrote: > Здравствуйте! > > Подскажите, пожалуйста, можно ли записать значение переменной в файл? > Идея - по определенным условиям записывать IP, для последующей блокировки в iptables. > > Или если еby Igor Sysoev - Nginx Mailing List - Russian
On Fri, Oct 05, 2012 at 11:49:12AM +0200, António P. P. Almeida wrote: > On 4 Out 2012 20h20 CEST, aweber@comcast.net wrote: > > > I would like to "override" the intent of the app server that is > > basically disabling any caching of the backend file. For example, > > they are embedding a "noCache=#######" parameter at the end of the > > URL (thby Igor Sysoev - Nginx Mailing List - English
On Thu, Oct 04, 2012 at 02:20:30PM -0400, AJ Weber wrote: > I would like to "override" the intent of the app server that is > basically disabling any caching of the backend file. For example, they > are embedding a "noCache=#######" parameter at the end of the URL (there > are other parameters following, but if I can check the url up-to the "?" > tby Igor Sysoev - Nginx Mailing List - English
On Sep 30, 2012, at 0:10 , Роман wrote: > Спасибо, теперь передумал схему и решил сделать так > нужно выдавать 404ю ссылаясь на директорию /404/ > и там уже можно разруливать что отдавать > но вот одно но, при такой схеме: > > error_pageby Igor Sysoev - Nginx Mailing List - Russian
On Sep 29, 2012, at 23:40 , Ian M. Evans wrote: > I'm using a config for wordpress and though it was working for me earlier, > suddenly the config is failing with: > > nginx: unknown "blogname" variable > > But isn't that variable defined here? > > map $blogname $blogid{ > default ""; > /example/ 2; > } > > Is it a formatting eby Igor Sysoev - Nginx Mailing List - English
Thank you! -- Igor Sysoev http://nginx.com/support.html _______________________________________________ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginxby Igor Sysoev - Nginx Mailing List - English
On Sep 28, 2012, at 20:24 , Роман wrote: > Раньше 404 отдавался скриптом с заголовком 404 > > Решил сделать статичную страницу, но при таком варианте в заголовке > отадется HTTP/1.1 200 OK, а нужно HTTP/1.1 404 Not Found > > Не пойму как отдать свойby Igor Sysoev - Nginx Mailing List - Russian
On Sep 28, 2012, at 13:31 , Jaroslav wrote: > I am afraid they not :( > > Those images by default are expiring in epoch. > You want to say than nginx will handle this 304 thing if those headers are correctly set in PHP? Not nginx but browsers: they do not send If-Modified-Since/If-None-Match header fields to nginx. If these images never expire then you can add location /bin/ {by Igor Sysoev - Nginx Mailing List - English
On Sep 28, 2012, at 13:15 , Jaroslav wrote: > Thank you very much Igor for a fast response! > > So far I see the performance increase. I see the logs being created. And no longer see so lot access logs to apache images. > > my config is: > location /bin/ { > expires 7d; > add_header X-Cache "Backend2-cache"; >by Igor Sysoev - Nginx Mailing List - English
On Sep 28, 2012, at 12:32 , Михаил Панфилов wrote: > А будет ли при этом ответ кэшироваться для пользователя? Да, private разрешает кэширование только клиентом. > Какой при этом нужно использовать ключ кэширования на CDN? Стандартby Igor Sysoev - Nginx Mailing List - Russian
On Sep 28, 2012, at 12:10 , Jaroslav wrote: > Hello everyone, > > I am using nginx as proxy before apache a long time already. And it is really terrific what it does. > Ram usage dropped like 3 times > I mainly set up image cache headers in nginx config > > Today I've spotted, that one of vhosts is generating images ALWAYS on the fly, images are accessed like: > /bin/82by Igor Sysoev - Nginx Mailing List - English
On Thu, Sep 27, 2012 at 08:32:34PM +0400, Михаил Панфилов wrote: > Доброго времени суток! > > Не подскажете ли решение на nginx для следующей задачи: > > необходимо реализовать кэширование на CDN динамических запросов. Сложность > в том,by Igor Sysoev - Nginx Mailing List - Russian
On Thu, Sep 27, 2012 at 11:17:49AM +0100, Mark Alan wrote: > On Thu, 27 Sep 2012 11:55:38 +0400, Igor Sysoev <igor@sysoev.ru> wrote: > > On Thu, Sep 27, 2012 at 09:53:25AM +0200, António P. P. Almeida wrote: > > > http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_pass > > > > If proxy_pass is specified with URI, when passing a request to the &gby Igor Sysoev - Nginx Mailing List - English
On Thu, Sep 27, 2012 at 09:53:25AM +0200, António P. P. Almeida wrote: > Yes but the original request AFAIK is for removing monitor from the URI. Hence the regex capture. http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_pass If proxy_pass is specified with URI, when passing a request to the server, part of a normalized request URI matching the location is replaced by a URby Igor Sysoev - Nginx Mailing List - English
On Sep 26, 2012, at 15:34 , Александр Хованский wrote: > Про sndbuf у listen не знал. Поставил 4k - теперь только ~200 Кб "утекает". > Буфером сокета на прием от бекенда управлять можно? На уровне nginx'а - нет. -- Igor Sysoev http://nginx.com/support.html __________by Igor Sysoev - Nginx Mailing List - Russian
On Thu, Sep 27, 2012 at 12:02:35AM +0200, António P. P. Almeida wrote: > On 26 Set 2012 23h56 CEST, appa@perusio.net wrote: > > > On 26 Set 2012 21h00 CEST, aweber@comcast.net wrote: > > > >> OK, I am positive this is easy for you experienced nginx users! > >> > >> I have a backend app server setup and am using nginx for > >> caching/proxy/sby Igor Sysoev - Nginx Mailing List - English
On Wed, Sep 26, 2012 at 08:49:08AM +0300, Pekka.Panula@sofor.fi wrote: > http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-4929 > > Does we need to be worry about nginx? Can we disable SSL/TLS compression > from server side? For OpenSSL 1.0.0+ SSL compression was disabled since 1.1.6 and 1.0.6 as a side effect of decrease of memory consumption: Changes with nginx 1.1.6by Igor Sysoev - Nginx Mailing List - English
On Sep 21, 2012, at 11:30 , drook wrote: > Привет. > > Использую nginx 1.2.1 + php-fpm как fcgi. Подскажите, как мне быть: для > интеграции своего сервиса в чужую cdn, когда эта cdn ходит в мой nginx, мне > надо показывать ей X-Accel-Redirect в выдаче. > > Сейby Igor Sysoev - Nginx Mailing List - Russian
On Sep 25, 2012, at 23:12 , Jan-Philip Gehrcke wrote: > Thanks for your opinion, Igor. Would it also be safe to use `include` statements for blocks that occur multiple times? Yes, it' safe. Although I prefer not to use "include" for this purpose, since it complicates the find-and-replace strategy. -- Igor Sysoev http://nginx.com/support.html > Jan-Philip > > On 09/25/20by Igor Sysoev - Nginx Mailing List - English
On Tue, Sep 25, 2012 at 10:14:07AM +0200, Jan-Philip Gehrcke wrote: > Thanks, Maxim! This was helpful. > > However, I'd like to discuss the concept a bit further. We're talking > about changing only one property for a single location while keeping the > rest of the configuration constant -- a pretty common task I guess -- > shouldn't there be a more elegant solution? My exprby Igor Sysoev - Nginx Mailing List - English
On Fri, Sep 21, 2012 at 05:01:54PM +0100, Filipe Silva wrote: > Hello, > I've been trying to produce a nginx filter to concat text to a response body but without success. > An important detail is that it works with a nginx configured as a web server but not with a nginx server configured as reverse proxy. > Should I be using an handler instead? > Thank you, > Filipe Sby Igor Sysoev - Nginx Development
On Wed, Sep 19, 2012 at 02:39:43PM +0300, Sergey Kobzar wrote: > On 09/19/12 14:17, Sergey Budnevitch wrote: > > До недавнего времени письма в рассылку с неподписанных адресов переправлялись администратору, > > и отправитель оставался в неведении, почему его пиby Igor Sysoev - Nginx Mailing List - Russian
On Sep 17, 2012, at 20:37 , Gena Makhomed wrote: > On 17.09.2012 15:59, Igor Sysoev wrote: > >>>>> - предлагаю для директивы worker_processes >>>>> сделать дополнительный вариант значения: auto > >>> http://stackoverflow.com/questions/150355/programmatically-find-the-number-of-cores-on-a-macby Igor Sysoev - Nginx Mailing List - Russian
On Sep 17, 2012, at 16:46 , Gena Makhomed wrote: > On 17.09.2012 15:19, Валентин Бартенев wrote: > >>> - предлагаю для директивы worker_processes >>> сделать дополнительный вариант значения: auto > >> Уже много раз обсуждали. Простого и единого спосоby Igor Sysoev - Nginx Mailing List - Russian
On Sep 16, 2012, at 3:55 , justin wrote: > I am trying to get fancy and have `nginx.conf` auto-detect the number of > CPU's on the server and then set `worker_processes` to that number. Here is > what I have: > > worker_processes $(cat /proc/cpuinfo | grep "processor" | sort -u | wc > -l); > > Unfortunately, that is throwing an error on nginx start. Is it evby Igor Sysoev - Nginx Mailing List - English
On Sep 14, 2012, at 12:29 , Serafim wrote: > Почему не получается провернуть такой финт: > > backend возвращает пустой (без тела) ответ с двумя заголовками: > X-Accel-Redirect и X-HDS-Server (кастомный, выдумал сам); > в nginx'е есть location помеченный каby Igor Sysoev - Nginx Mailing List - Russian
On Sep 13, 2012, at 1:04 , thigomes wrote: > Just to complete the information, in my case I have two configuration > according with the web server, so: > > # TO VARNISH > location / { > proxy_redirect off; # Do not redirect this proxy - It needs to be > pass-through > proxy_set_header Host $host; > proxy_set_header X-Real-IP $remote_addr; > proxy_set_header X-Foby Igor Sysoev - Nginx Mailing List - English
On Mon, Sep 10, 2012 at 07:44:05AM -0400, Darwin wrote: > Андрей Василишин Wrote: > ------------------------------------------------------- > > 10.09.2012 12:53, Darwin пишет: > > > Привет всем. Помогите пожалуйста правильно конвертировать правила > > для NGINX, > > > так какby Igor Sysoev - Nginx Mailing List - Russian
On Tue, Sep 04, 2012 at 12:29:26PM +0300, Daniil wrote: > Здравствуйте, > > Есть ли возможность в конфигурационном файле составлять многострочные > регулярные выражения типа: > > location ~ ^/ > (?<one>\w+)/ > (?<two>\w+)/ >by Igor Sysoev - Nginx Mailing List - Russian
![]() |
![]() |
![]() |
![]() |
|