On Wed, Jun 09, 2010 at 11:21:47AM -0400, bkirkbri wrote: > Our application uses versioned URLs like http://domain.com/r123456789/resource/uri to allow for aggressive caching and easy cache invalidation. > > To get this working in nginx, I currently have a config like this: > > > ################################################# > set $cache_control ''; > > locationby Igor Sysoev - Nginx Mailing List - English
On Wed, Jun 09, 2010 at 11:01:34AM -0400, hg_04 wrote: > нет, > current=0, пришел запрос в /one мы значение переменной current увеличили на 10(абстрактные единицы измерения), если в /two то current +=100(и соответственно когда запрос отработал current -=100), пришел оby Igor Sysoev - Nginx Mailing List - Russian
On Wed, Jun 09, 2010 at 04:47:46PM +0200, Axel wrote: > Yes I have this include in nginx.conf in the http section Could you create a debug log: http://nginx.org/en/docs/debugging_log.html -- Igor Sysoev http://sysoev.ru/en/ _______________________________________________ nginx mailing list nginx@nginx.org http://nginx.org/mailman/listinfo/nginxby Igor Sysoev - Nginx Mailing List - English
On Wed, Jun 09, 2010 at 04:40:05PM +0200, Axel wrote: > Hi guys, > > When I switched from Apache to Nginx, I didn't notice an issue I introduced in my website. Static files are displayed into the browser instead of being downloaded. It's the case for PDF files and more surprising Zip files. How comes? Did I forget some kind of configuration? Do you have this or similar line in configurby Igor Sysoev - Nginx Mailing List - English
On Wed, Jun 09, 2010 at 10:08:51AM -0400, hg_04 wrote: > >Вопрос не понял. Зоны отдельные. > в результате мне нужно раскинуть весы на локейшини и задать вес сервера. > что-то вроде: > server { > max_weight 2000; > location /one/ { > weight 10; > } > location /two/ { >by Igor Sysoev - Nginx Mailing List - Russian
On Wed, Jun 09, 2010 at 03:46:41PM +0200, John Feuerstein wrote: > Hello, > > using nginx-0.8.40 on Linux 2.6.32 I've encountered a problem with > nginx reloading, which leaves processes in process state "H" > behind. As soon as the first of these processes is left behind, nginx > is unable to reload the workers and is unable to stop gracefully. > (happens with 0.by Igor Sysoev - Nginx Mailing List - English
On Wed, Jun 09, 2010 at 09:54:40AM -0400, hg_04 wrote: > в результате если на /two зайдет 2 запроса, а на /one/ 800 следующий запрос получит 503? > я считал, что такой подход будет действовать на каждую зону отдельно, то есть one=1000 и two=10 одновременно. Вby Igor Sysoev - Nginx Mailing List - Russian
On Wed, Jun 09, 2010 at 08:40:49AM -0400, hg_04 wrote: > допустим есть 2 локейшина и я знаю что 1 локешин держит максимум 1000 конектов, второй 10. > мне нужно в них узнать сколько активных конектов на данный момент и если это число превышает максby Igor Sysoev - Nginx Mailing List - Russian
On Wed, Jun 09, 2010 at 01:30:47PM +0100, --[ UxBoD ]-- wrote: > ----- Original Message ----- > > On Wed, Jun 09, 2010 at 01:19:00PM +0100, --[ UxBoD ]-- wrote: > > > > > > proxy_redirect https://pm01.domain.com/ /; > > > > proxy_redirect https://pm02.domain.com/ /; > > > > > > > > > > > Igor, that works now using the aboveby Igor Sysoev - Nginx Mailing List - English
On Wed, Jun 09, 2010 at 01:19:00PM +0100, --[ UxBoD ]-- wrote: > > proxy_redirect https://pm01.domain.com/ /; > > proxy_redirect https://pm02.domain.com/ /; > > > > > Igor, that works now using the above syntax :) A question though is there anyway to tell NGINX to redirect based on the proxied hostname ? If we had pm01 ... 100 then I would need to add 100 proxy_redireby Igor Sysoev - Nginx Mailing List - English
On Wed, Jun 09, 2010 at 03:13:19PM +0300, Alex Smorodin wrote: > Как сделать, чтобы при логине пользователь получил куку "session" от > апача ? И чтобы потом из кэша она ни к кому не попала. Извините за > сумбурность мыслей. По-моему, ответ очеby Igor Sysoev - Nginx Mailing List - Russian
On Wed, Jun 09, 2010 at 01:05:56PM +0100, --[ UxBoD ]-- wrote: > ----- Original Message ----- > > On Wed, Jun 09, 2010 at 12:50:30PM +0100, --[ UxBoD ]-- wrote: > > > > > Hi, > > > > > > I have installed my first NGINX proxy and having a real problem with > > > redirects. As a example I have published externally: > > > > > > htby Igor Sysoev - Nginx Mailing List - English
On Wed, Jun 09, 2010 at 12:50:30PM +0100, --[ UxBoD ]-- wrote: > Hi, > > I have installed my first NGINX proxy and having a real problem with redirects. As a example I have published externally: > > https://pm.domain.com/client1 > https://pm.domain.com/client2 > > which should then redirect to the clustered back-end servers which are named pm01.domain.com etc. What isby Igor Sysoev - Nginx Mailing List - English
On Wed, Jun 09, 2010 at 02:42:48PM +0300, Alex Smorodin wrote: > Пробую так (на 0.7.66 и на 0.8.4): > location / { > proxy_pass http://192.168.0.32:81; > proxy_set_header Host domain.com; > proxy_set_header X-Real-IP $remote_addr; > proxy_next_upstream error timeout invalid_header http_500 http_503; > proxy_cacheby Igor Sysoev - Nginx Mailing List - Russian
On Tue, Jun 08, 2010 at 11:13:03PM +0400, big bond wrote: > ммм, выходит в гугле сидят несведующие товарищи, раз они применяют таки > капчу от ботов? Гугл использует капчу не для борьбы с ддосом. -- Игорь Сысоев http://sysoev.ru ________________________________________by Igor Sysoev - Nginx Mailing List - Russian
On Tue, Jun 08, 2010 at 02:04:04PM -0400, bongtv wrote: > I used the developer tools built in in the browsers. If there is a compression made you will see this in the ressources pane of the developer tools. In the example above you see that the browser loads the full file. We made a transition from apache to nginx and we found this out because useres wrote us about longer loading times. Safarby Igor Sysoev - Nginx Mailing List - English
On Tue, Jun 08, 2010 at 10:44:38AM -0400, bongtv wrote: > If you want to check the difference: > http://www.bong.tv/jquery/de/2.5/javascript-packed.js => FF = 168kb > http://www.bong.tv/jquery/de/2.5/javascript-packed.js => Safari or Chrome = 609kb How did you see 609K ? I've tried http://www.rambler.ru in Chrome and Safari Developer tools consoles, and it showed ~100K while in aby Igor Sysoev - Nginx Mailing List - English
On Tue, Jun 08, 2010 at 10:18:55PM +0700, Glen Lumanau wrote: > please ignore my previous email.. latest version is works. > > objs/src/os/unix/ngx_process.o: In function `ngx_process_get_status': > /root/nginx-0.7.66/src/os/unix/ngx_process.c:487: warning: `sys_errlist' is > deprecated; use `strerror' or `strerror_r' instead > /root/nginx-0.7.66/src/os/unix/ngx_process.c:487:by Igor Sysoev - Nginx Mailing List - English
On Tue, Jun 08, 2010 at 11:55:01AM -0300, Rogério Schneider wrote: > > The patch I attached actually frees memory before the connection ends but do a lot of assumptions that might not work. The cleanest solution is probably just to disable chunked transfer encoding with the option: > > > > chunked_transfer_encoding off; > > I am using 0.7.65 and it does not support thisby Igor Sysoev - Nginx Mailing List - English
On Tue, Jun 08, 2010 at 09:39:20AM -0400, isit wrote: > Судя по > http://wiki.nginx.org/NginxHttpMapModule > это разрешено в секции http. Как быть, если нужно оценивать состояние куки? map только описывает переменную. Так и писать map $cookie_NAME $VAR { -- Игорь Сысоев hby Igor Sysoev - Nginx Mailing List - Russian
On Tue, Jun 08, 2010 at 04:54:52PM +0400, Dmitry Koterov wrote: > Игорь, спасибо за указание на узкое место в статье. Я подправил текст > http://dklab.ru/chicken/nablas/56.html в единственном месте: > > =========================== > Я буду предполагать, что вы используете сby Igor Sysoev - Nginx Mailing List - Russian
On Tue, Jun 08, 2010 at 09:00:29AM -0400, isit wrote: > Добрый день. > > http://sysoev.ru/nginx/docs/http/ngx_http_fastcgi_module.html#fastcgi_no_cache > > Можно ли как-то указать в этой директиве не кешировать при отсутствии какой-либо переменной? Сейчас - нет. Если у перемby Igor Sysoev - Nginx Mailing List - Russian
On Tue, Jun 08, 2010 at 03:12:54PM +0400, SaveFrom.net wrote: > Здравствуйте, Игорь. > > > 8 июня 2010 г. 13:27 пользователь Igor Sysoev <igor@sysoev.ru> написал: > > > Товарищи! > > > > На днях в рассылке я увидел чудовищную конструкцию: > > > > proxy_by Igor Sysoev - Nginx Mailing List - Russian
On Tue, Jun 08, 2010 at 01:24:12PM +0400, Yuriy Taraday wrote: > Как я понимаю, пытаются изобрести очередной .htaccess. Про него все > написано: http://wiki.nginx.org/Talk:NginxFeatureRequests Про .htaccess ответ простой: бессмысленно что-то делать для shared хостинга в эпоху, коby Igor Sysoev - Nginx Mailing List - Russian
Товарищи! На днях в рассылке я увидел чудовищную конструкцию: proxy_cache_key "$request_method|$http_if_modified_since|$http_if_none_match|$host|$request_uri"; По всей видимости, её источник - http://dklab.ru/chicken/nablas/56.html где она оправдано применяется в FastCGI. Но тамby Igor Sysoev - Nginx Mailing List - Russian
On Fri, May 28, 2010 at 01:41:48PM -0700, PatRoy wrote: > Hi, > > Can someone tell me if it's possible to proxy the requests to > different servers by using an http header value. So for example we > have 2 web servers and if the request has the http header "group_id" > between 0 and 100 then those go to server #1, and between 100 and 200, > they go to server #2? &gby Igor Sysoev - Nginx Mailing List - English
On Mon, Jun 07, 2010 at 06:32:43PM +0300, Vladimir Getmanshchuk wrote: > Игорь, > > Было бы очень замечательно если бы в будущем это работало: > include $document_root/cache_fcgi.param; Нет. inlcude работает на стадии конфигурации, а $document_root - на стадии обработки запросby Igor Sysoev - Nginx Mailing List - Russian
On Mon, Jun 07, 2010 at 11:18:46AM -0400, grigory wrote: > Добрый день. У меня включено кеширование на сервере, но один скрипт постоянно обращается к серверу через AJAX сотни раз в минуту, и у него каждый раз уникальный url, чтобы браузер не кешироby Igor Sysoev - Nginx Mailing List - Russian
On Mon, Jun 07, 2010 at 04:55:04PM +0200, lucas@landm.net wrote: > > Hi Igor, > > >> We solved with this code: > >> > >> location / { > >> rewrite ^(.*) https://server$1 permanent; > >> } > > > > I do not see how this rewrite may resolve the issue. > > The problem was an internal redirectiby Igor Sysoev - Nginx Mailing List - English
On Mon, Jun 07, 2010 at 04:33:18PM +0200, lucas@landm.net wrote: > > Hi, > > Sorry, it was because rewrite was doing its jobs unexpected. > We solved with this code: > > location / { > rewrite ^(.*) https://webmail.landm.net$1 permanent; > } I do not see how this rewrite may resolve the issue. BTW, proxy_redirect onby Igor Sysoev - Nginx Mailing List - English
![]() |
![]() |
![]() |
![]() |
|