Re: Caching servers in Local ISPs !!

2014-05-28 Thread itpp2012
shahzaib1232 Wrote: --- Thanks itpp. So according to you the more preferable way is non-caching replication of main content servers to local ISP servers and than run rsync periodically for replication. So if file not found in local ISP

Re: Caching servers in Local ISPs !!

2014-05-28 Thread shahzaib shahzaib
Right. I'll proceed with my research and get back to you with better approach . :) ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Request for a no capture rewrite directive enhancement

2014-05-28 Thread B.R.
I think Igor is suggesting PERL named captures. Although, it appears to me the correct syntax would rather be (?name...), as perlre docs http://perldoc.perl.org/perlre.html#Extended-Patternsstate. Then, just use you first syntax (omitting the 'set' directives). --- *B. R.* On Wed, May 28, 2014

Re: Request for a no capture rewrite directive enhancement

2014-05-28 Thread Igor Sysoev
On 28 May 2014, at 19:39, B.R. reallfqq-ng...@yahoo.fr wrote: I think Igor is suggesting PERL named captures. Although, it appears to me the correct syntax would rather be (?name...), as perlre docs state. Then, just use you first syntax (omitting the 'set' directives). You a re right, I

Re: Can anyone tell me how to delete spam pages on the wiki?

2014-05-28 Thread sarah.novotny
hi! thanks for the offer for help.  send me an email sa...@nginx.com and i’ll get you set up. sarah From: talkingnews nginx-fo...@nginx.us Reply: nginx@nginx.org nginx@nginx.org Date: May 28, 2014 at 11:29:17 AM To: nginx@nginx.org nginx@nginx.org Subject:  Can anyone tell me how to delete

Header Vary: Accept-Encoding - security risk ?

2014-05-28 Thread chili_confits
Dear list, I have enabled gzip with ... gzip on; gzip_http_version 1.0; gzip_vary on; ... to satisfy incoming HTTP 1.0 requests. In a very similiar setup which got OWASP-evaluated, I read this - marked as a defect: The web server sent a Vary header, which indicates that server-driven

Re: nginx add trailing slash with wrong port

2014-05-28 Thread Francis Daly
On Sat, May 24, 2014 at 02:53:21PM -0400, luc2 wrote: Hi there, nginx rewrites : http://localhost:8081/files to : http://localhost:81/files/ # wrong port ! snip is it possible to configure nginx to behave like apache ? No. If your use case is restricted to one of the two mentioned

Re: NGINX: Reverse Proxy (SSL) with non-ssl backend

2014-05-28 Thread Francis Daly
On Mon, May 26, 2014 at 10:11:27AM +0100, Nelson Manuel Marques wrote: Hi there, I am facing a small issue with this setup, mainly, when I select checkboxes and friends and hit submit (ex; application setup) nothing happens… Can you rephrase this in the form of I make this http request and I

Re: NGINX: Reverse Proxy (SSL) with non-ssl backend

2014-05-28 Thread Steve Wilson
It's late and I'm about to go to bed so I've not checked the docs on this but ... add_header Front-End-Https on; I suspect this is meant to be proxy_add_header and meant so php can detect the client is accessing via https. If my memory is correct on this it's likely that php

Re: Request for a no capture rewrite directive enhancement

2014-05-28 Thread Peter Mescalchin
Fantastic Igor - I didn't know that you could do named captures in Nginx - good to know. That solves it rather nicely. And thanks B.R. - yep, that syntax is part of PCRE. Pete I think Igor is suggesting PERL named captures. Although, it appears to me the correct syntax would rather be

Re: Request for a no capture rewrite directive enhancement

2014-05-28 Thread B.R.
Yup the location directive uses the PCRE library to interpret regex. Its docs doesn't mention that the regex are PCRE, but the hint is given away on the build from sources http://nginx.org/en/docs/configure.htmlpage. It reminds me that not so long ago I mixed up named captures and subpatterns

[PATCH] append -gzip to etags processed by gzip_filter_module + not modified support

2014-05-28 Thread Andrew Williams
this patch modifies the etag header returned by responses processed by the gzip filter, appending -gzip to the etag (instead of deleting it). Also, If-None-Match and If-Match requests work against the modified etag. (the gunzip module appends -gunzip to the etag). cheers Andrew # HG changeset

Re: [PATCH] append -gzip to etags processed by gzip_filter_module + not modified support

2014-05-28 Thread Maxim Dounin
Hello! On Wed, May 28, 2014 at 04:26:04PM +0930, Andrew Williams wrote: this patch modifies the etag header returned by responses processed by the gzip filter, appending -gzip to the etag (instead of deleting it). Also, If-None-Match and If-Match requests work against the modified etag.

[nginx] Version bump.

2014-05-28 Thread Maxim Dounin
details: http://hg.nginx.org/nginx/rev/9b0c92f22bbf branches: changeset: 5713:9b0c92f22bbf user: Maxim Dounin mdou...@mdounin.ru date: Wed May 28 17:41:33 2014 +0400 description: Version bump. diffstat: src/core/nginx.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)

[nginx] Fixed config parsing of the last try_files parameter.

2014-05-28 Thread Sergey Kandaurov
details: http://hg.nginx.org/nginx/rev/790ba7484bb6 branches: changeset: 5715:790ba7484bb6 user: Sergey Kandaurov pluk...@nginx.com date: Wed May 28 20:18:05 2014 +0400 description: Fixed config parsing of the last try_files parameter. Do not taste the last parameter against

Re: [PATCH] Core: merge adjacent free slab pages to ameliorate fragmentation from multi-page blocks (Was Re: Help with shared memory usage)

2014-05-28 Thread Maxim Dounin
Hello! On Sun, May 11, 2014 at 10:13:52PM -0700, Yichun Zhang (agentzh) wrote: Hello! On Mon, Jul 29, 2013 at 10:11 AM, Maxim Dounin wrote: Additionally, doing a full merge of all free blocks on a free operation looks too much. It might be something we want to do on allocation

Re: Help with shared memory usage

2014-05-28 Thread Maxim Dounin
Hello! On Wed, Jan 22, 2014 at 08:51:50PM +0400, Maxim Dounin wrote: Hello! On Wed, Jan 22, 2014 at 01:39:54AM -0200, Wandenberg Peixoto wrote: Hello Maxim, did you have opportunity to take a look on this last patch? It looks more or less correct, though I don't happy with the

Nginx и Memcached на одном хосте или отдельно?

2014-05-28 Thread Brazzford
Здравствуйте! Может, кто ни нибудь, сказать в каких случаях их можно ставить вмести, а в каких нет, и, хотелось бы, узнать почему. А то я не знаю как мне правильно поступить - снимать один VPS или два =( Posted at Nginx Forum: http://forum.nginx.org/read.php?21,250415,250415#msg-250415

Re: Nginx и Memcached на одном хосте или отдельно?

2014-05-28 Thread Alex Belyansky
Все зависит от объемов того что хотите хранить в мемкеше. Если объемы будут небольшими, то можно и вместе. Я ведь правильно понимаю что будет только Nginx+Memcached на хосте? Делал уже так на фронтенде. Nginx под себя много памяти не требовал, поэтому Memcached себя очень уютно чувствовал.

Re: Nginx и Memcached на одном хосте или отдельно?

2014-05-28 Thread Михаил Монашёв
Здравствуйте, Brazzford. Здравствуйте! Может, кто ни нибудь, сказать в каких случаях их можно ставить вмести, а в каких нет, и, хотелось бы, узнать почему. А то я не знаю как мне правильно поступить - снимать один VPS или два =( Ставьте на одном. В 99% случаев всё будет ок. Да и пошустрее

Re: Nginx и Memcached на одном хосте или отдельно?

2014-05-28 Thread Brazzford
Прошу прощение, что обидел Nginx, написал не подумав, он же на обслуживания тысячи конкурирующих соединения тратит всего несколько мегабайт =) Brazzford Wrote: --- Спасибо за ответ! Тогда, на сколько, я понимаю решение о соединении или

Re: Nginx и Memcached на одном хосте или отдельно?

2014-05-28 Thread Konstantin Tokarev
28.05.2014, 13:01, Brazzford nginx-fo...@nginx.us: Спасибо за ответ! Тогда, на сколько, я понимаю решение о соединении или разъединении этих серверов зависит, от того, сколько будет отдано памяти для кэша Memcached и сколько конкурентных запросов придётся обслуживать Nginx, так как, с

proxy_pass для location на другой сервер

2014-05-28 Thread maks
Прошу не пинать сильно, но голова вскипела (может не внимательно читал). nginx.conf дефолтный для Debian Wheezy Суть задачи - проксировать определенный location на некий сервер с Apache. Возможно ли такое? Пробовал так: location /server1 { ... rewrite ^/server1(.*)$ $1 break;

Re: proxy_pass для location на другой сервер

2014-05-28 Thread Aleksandr Sytar
28 мая 2014 г., 13:54 пользователь maks maks.invisi...@gmail.com написал: location /server1 { ... rewrite ^/server1(.*)$ $1 break; proxy_pass http://server1.com; ... } location /server1/ { proxy_pass http://server1.com/; }

Re: proxy_pass для location на другой сервер

2014-05-28 Thread Ilya Ivantsov
28/05/14 13:54 , maks пишет: Прошу не пинать сильно, но голова вскипела (может не внимательно читал). nginx.conf дефолтный для Debian Wheezy Суть задачи - проксировать определенный location на некий сервер с Apache. Возможно ли такое? Пробовал так: location /server1 { ... rewrite

Re: proxy_pass для location на другой сервер

2014-05-28 Thread maks
28.05.14 12:59, Ilya Ivantsov написав: Перемудрили, попробуйте так: location /server1/ { ... proxy_pass http://server1.com/; ... } Спасибо за ответ. Так тоже пробовал. На сервере, куда нужно проксировать, оказался интересный index.html: HTML HEAD meta http-equiv=refresh

Re: proxy_pass для location на другой сервер

2014-05-28 Thread Валентин Бартенев
On Wednesday 28 May 2014 13:22:25 maks wrote: 28.05.14 12:59, Ilya Ivantsov написав: Перемудрили, попробуйте так: location /server1/ { ... proxy_pass http://server1.com/; ... } Спасибо за ответ. Так тоже пробовал. На сервере, куда нужно проксировать,

Re: proxy_pass для location на другой сервер

2014-05-28 Thread maks
То, что нужно. Спасибо огромное. 28.05.14 13:25, Валентин Бартенев написав(ла): On Wednesday 28 May 2014 13:22:25 maks wrote: 28.05.14 12:59, Ilya Ivantsov написав: Перемудрили, попробуйте так: location /server1/ { ... proxy_pass http://server1.com/; ... } Спасибо за

Re: nginx-1.7.1

2014-05-28 Thread Daniel Podolsky
2014-05-27 18:10 GMT+04:00 Maxim Dounin mdou...@mdounin.ru: *) Добавление: директивы error_log и access_log теперь поддерживают логгирование в syslog. Наконец-то! Спасибо большое! Если не секрет - как удалось договориться с Игорем? :) ___

Re: nginx-1.7.1

2014-05-28 Thread Валентин Бартенев
On Wednesday 28 May 2014 17:36:25 Daniel Podolsky wrote: 2014-05-27 18:10 GMT+04:00 Maxim Dounin mdou...@mdounin.ru: *) Добавление: директивы error_log и access_log теперь поддерживают логгирование в syslog. Наконец-то! Спасибо большое! Если не секрет - как удалось

Re: nginx-1.7.1

2014-05-28 Thread Daniel Podolsky
Этот модуль не использует syslog(), а полностью реализует протокол на UDP. Когда-то, насколько я помню, и такой вариант Игорь отвергал, как неприемлемый... ___ nginx-ru mailing list nginx-ru@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx-ru

Re: nginx-1.7.1

2014-05-28 Thread Валентин Бартенев
On Wednesday 28 May 2014 17:53:39 Daniel Podolsky wrote: Этот модуль не использует syslog(), а полностью реализует протокол на UDP. Когда-то, насколько я помню, и такой вариант Игорь отвергал, как неприемлемый... Если речь об этом популярном патче: