12.08.2011, в 11:28, "Samael" <nginx-forum@nginx.us> написал(а): > Thank you for your advices and your insight, Igor, I've adjusted my > configuration file accordingly, feels much better now. It is stupid, but > the truth is that I didn't know that it was possible to use nested > locations. > > Спасибо! We are working on comprehensive English doby Igor Sysoev - Nginx Mailing List - English
On Sun, Aug 07, 2011 at 09:26:51AM +0400, Михаил Монашёв wrote: > Здравствуйте, Maxim. > > Вы писали 7 августа 2011 г., 4:41:31: > > > Hello! > > > On Sun, Aug 07, 2011 at 01:27:22AM +0400, Михаил Монашёв wrote: > > >> Здравствуйте, Igor. > >> > >> >> > *) Дby Igor Sysoev - Nginx Mailing List - Russian
On Fri, Aug 05, 2011 at 10:46:26AM -0400, zflairz wrote: > I think I need "location ~* ^/.+" instead of "location /" because I have > this: > > location / { > index index.html; > } > > so www.example.com will read /index.html, while in the case of "location > /", it can't find / in mapping, then return 404.by Igor Sysoev - Nginx Mailing List - English
On Fri, Aug 05, 2011 at 09:21:11AM -0400, zflairz wrote: > I'm using map module to redirect URLs which have been removed (but > indexed by search engine). > But how can I fall back to http 404 response for urls not present in my > redirect list? > > I've tried following, but I got 200 instead of 404: > > location ~* ^/404$ { > return 404; >by Igor Sysoev - Nginx Mailing List - English
Нет. -- Igor Sysoev 05.08.2011, в 2:18, Boris Dolgov <boris@dolgov.name> написал(а): > 2011/8/3 Igor Sysoev <igor@sysoev.ru>: >> Мы рады объявить об открытии http://trac.nginx.org - инновационного >> интерфейса отправки сообщенияй об ошибках и патчей. Короткая инсby Igor Sysoev - Nginx Mailing List - Russian
On Thu, Aug 04, 2011 at 12:21:37PM -0400, Aleksey Potaneyko wrote: > Есть конфиг, с большим кол-вом блоков location, внутри есть список > allow IPs, при правке/добавлении IP нужно редактировать в каждлм таком > блоке, что не есть гуд и можно где-то допуститьby Igor Sysoev - Nginx Mailing List - Russian
On Thu, Aug 04, 2011 at 03:27:46PM +0300, Calin Don wrote: > Thanks for the clarification. Is there a reason why cache purge module > was not merged with the upstream version of nginx, since it would be > very nice to have a way of purging cache items. Sometime ago I tried to implement the similar functionality in core nginx, but found some issues. Probably I will back to this again soonby Igor Sysoev - Nginx Mailing List - English
On Wed, Aug 03, 2011 at 02:17:15PM -0400, rburkat wrote: > Hi Igor, thanks for the quick patch. This patch is different than the > nginx-1.1.0 code. I assume the 1.1.0 code supersedes the patch as it > was posted later. If not, disregard. > > The nginx-1.1.0 code has a bug in it. ( from a glance the patch would > have been ok ) The attached patch for 1.1.0 should fix the buby Igor Sysoev - Nginx Mailing List - English
On Thu, Aug 04, 2011 at 09:47:46AM +0800, chateau Xiao wrote: > do you mean, in the next version, murmur2 hash function will be used in > nginx? Yes. > and do you show the benchmark between the orignial algorithm and the new > one? On tens bytes the difference will be negligible and I believe you actually can not even test it in a real world because benchmark itself overhead is moreby Igor Sysoev - Nginx Development
On Thu, Aug 04, 2011 at 01:13:35PM +0300, Calin Don wrote: > Hi, to remove an entry from proxy cache is enough just to delete the cached > file or you need to do something else. Yes, simple deleting works except 1) you will get error message in log, harmless though, 2) and if you limit cache size using max_size the deleted file will be accounted as existant. > If simply deleting workby Igor Sysoev - Nginx Mailing List - English
On Thu, Aug 04, 2011 at 01:32:14PM +0300, Peter Smit wrote: > (This is my first message to this list, please let me know if I'm > doing something wrong!) > > In developing a comet style application in a uwsgi/nginx setup I > noticed that nginx always buffers the response when uwsgi_pass is > used. > > I'm not sure or there is any particular reason why this is done, > eby Igor Sysoev - Nginx Development
On Thu, Aug 04, 2011 at 04:33:30AM -0400, Samael wrote: > Thanks for the suggestions, I will check how can I improve my > configuration upon them. Unfortunately, they seem to be less generic (ie > including specific paths) and so promote the probability of making > errors. > > I'm wondering about the regex usage in location though - this is one of > the things I like very mucby Igor Sysoev - Nginx Mailing List - English
On Thu, Aug 04, 2011 at 03:51:54AM -0400, a.a.vasiljev wrote: > Я код апача не отлаживал. Использую из > коробки httpd-2.2.17-10.fc15.1.i686 > Проверяю следующим образом. Вот конфиг > виртуального хоста апача: > > Listen 5578 > > <VirtualHost 127.0.0.1:5578> > ServerNamby Igor Sysoev - Nginx Mailing List - Russian
On Thu, Aug 04, 2011 at 02:51:05AM -0400, a.a.vasiljev wrote: > Одна только downgrade-1.0 тоже работает, > проверил. Судя по исходникам, не должно. downgrade-1.0 только делает входящий запрос 1.0: /* Note that we must downgrade before checking for force responses. */ if (r->proto_num > HTTP_VERSIby Igor Sysoev - Nginx Mailing List - Russian
On Thu, Aug 04, 2011 at 10:37:17AM +0400, Igor Sysoev wrote: > On Thu, Aug 04, 2011 at 01:58:33AM -0400, a.a.vasiljev wrote: > > Спасибо Игорь. > > > > SetEnv force-no-vary > > SetEnv downgrade-1.0 > > > > прописанные внутри VirtualHost апача решили > > проблему. > > force-no-vary, наскольby Igor Sysoev - Nginx Mailing List - Russian
On Thu, Aug 04, 2011 at 01:58:33AM -0400, a.a.vasiljev wrote: > Спасибо Игорь. > > SetEnv force-no-vary > SetEnv downgrade-1.0 > > прописанные внутри VirtualHost апача решили > проблему. force-no-vary, насколько я понимаю не нужен. Достаточно только downgrade-1.0 -- Игорь Сысby Igor Sysoev - Nginx Mailing List - Russian
On Tue, Aug 02, 2011 at 03:28:16AM -0400, Samael wrote: > Igor, to cut things short - I'd like to either pass the PHP scripts' > execution to the fcgi processes or prevent them from being downloaded. > > In addition, I tried to prevent PHP scripts in common > webserver-writeable directories (of course, this list will be extended) > from being executed in order not to allow user-by Igor Sysoev - Nginx Mailing List - English
On Wed, Aug 03, 2011 at 11:13:17AM +0400, Aleksey Chirkin wrote: > Я устанавливал nginx из macports и понадеялся, что он свежей версии. > Как оказалось, у меня был установлен nginx 1.0.0. > После установки вручную версии 1.0.5 проблема исчезла. Между 1.0.0 и 1.0.5 ниby Igor Sysoev - Nginx Mailing List - Russian
On Wed, Aug 03, 2011 at 12:42:43PM +0400, Maxim Dounin wrote: > Hello! > > On Wed, Aug 03, 2011 at 04:20:39AM -0400, Quincy wrote: > > > I have the same problem. I can't redirect http to https. Here is my > > config: > > > > server { > > listen 2121; > > server_name XXXXX; > > ssl on; > > ssl_certificate XXt; > > ssl_ceby Igor Sysoev - Nginx Mailing List - English
On Wed, Aug 03, 2011 at 04:20:39AM -0400, Quincy wrote: > I have the same problem. I can't redirect http to https. Here is my > config: > > server { > listen 2121; > server_name XXXXX; > ssl on; > ssl_certificate XXt; > ssl_certificate_key XX; > #server_name _; > server_name_in_redirect off; > port_in_redirect off; > > root XXX; > &by Igor Sysoev - Nginx Mailing List - English
On Wed, Aug 03, 2011 at 01:56:32PM -0400, Logioniz wrote: > Спасибо, очень помогли. > А можно узнать, где есть подробная > информация о конфигурировании nginx? на > вашем сайт вроде не все возможности и > методы есть или я может плохо искал? Сейby Igor Sysoev - Nginx Mailing List - Russian
On Wed, Aug 03, 2011 at 12:59:00PM -0400, Logioniz wrote: > Можно внести ясность. Как присвоить > значение переменной $http_myheader? Значение переменной $http_myheader автоматически появляется из заголовка запроса "myheader". > И что значит анонимная?by Igor Sysoev - Nginx Mailing List - Russian
On Wed, Aug 03, 2011 at 12:48:22PM -0400, Logioniz wrote: > Можно ли в поле proxy_pass подставить > значение, которое нужно взять из > заголовка в http пакете, пример: > > http packet: > get ... > host: ... > Accept: ... > ... > MyHeader: qwe.ru > > <body> > > Можно лиby Igor Sysoev - Nginx Mailing List - Russian
На данный момент nginx НЕ создаёт промежуточные каталоги в пути к каталогу для временных файлов и кэша, то есть, если нужен каталог /var/nginx/proxy_temp, а каталога /var/nginx нет, то nginx его не создаст. nginx может создать только proxy_temp в ужby Igor Sysoev - Nginx Mailing List - Russian
On Wed, Aug 03, 2011 at 12:08:46PM -0400, a.a.vasiljev wrote: > Здравствуйте. > > Кто-нибудь сталкивался с ситуацией, > когда nginx искажает проксированный > контент: дописывает число в начале и > конце файла? > > $ diff -u /tmp/why_direct /tmp/why_nginx > --- /by Igor Sysoev - Nginx Mailing List - Russian
On Wed, Aug 03, 2011 at 03:53:37PM +0400, Алексей Масленников wrote: > location ~* > ^.+\.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js)$ > { > root /var/www/tests.local; > access_log off; > expires 10d; > break; > } break здесь - это пустая трата времеby Igor Sysoev - Nginx Mailing List - Russian
On Wed, Aug 03, 2011 at 01:26:04PM +0800, Delta Yeh wrote: > Thanks , after apply the patch, crash won't happen again. Could you test another attached patch ? -- Igor Sysoev Index: src/http/modules/ngx_http_ssl_module.c =================================================================== --- src/http/modules/ngx_http_ssl_module.c (revision 3990) +++ src/http/modules/ngx_http_ssl_module.c (woby Igor Sysoev - Nginx Mailing List - English
Мы рады объявить об открытии http://trac.nginx.org - инновационного интерфейса отправки сообщенияй об ошибках и патчей. Короткая инструкция: http://trac.nginx.org/nginx/wiki Спасибо! -- Игорь Сысоев http://sysoev.ru _______________________________________________ nginx-ru mailby Igor Sysoev - Nginx Mailing List - Russian
We are happy to announce http://trac.nginx.org You will find the code browser and the bug tracker on this page. Please note that we would greatly appreciate if you could switch to this new and hopefully convenient way of submitting bug reports to us, along with patches to the code. Here is a short instruction: http://trac.nginx.org/nginx/wiki Thanks! -- Igor Sysoev _________________________by Igor Sysoev - Nginx Mailing List - English
On Wed, Aug 03, 2011 at 10:29:33AM +0000, Кокорин Иван Владимирович wrote: > Добрый день. Подскажите, возможно ли использование переменных в директивах fastcgi_connect_timeout и fastcgi_read_timeout? Имеется конфиг > > geo $fastcgi_timeout { > default 2;by Igor Sysoev - Nginx Mailing List - Russian