On Wed, Jun 01, 2011 at 03:42:12PM +0700, Hari Hendaryanto wrote: > On 6/1/2011 2:34 AM, Igor Sysoev wrote: > > As to configuraiton it's better to use this logic: > > geo $not_google { > > default 1; > > 66.0.0.0/8 0; > > } > > > > Does geo directive will also work for ipv6 ? > > ie: > > geo $not_google { > defaultby Igor Sysoev - Nginx Mailing List - English
On Wed, Jun 01, 2011 at 12:34:02PM +0400, Глазачев Владимир wrote: > Привет всем еще раз, решение оказалось проще чем я думал :) > > location ~* /bla-bla-vs-.*bla$ { > rewrite ^ http://www.domen.com/bla-bla-vs-bla/ permanent; > } > > Но вот еще вопросик, я не увby Igor Sysoev - Nginx Mailing List - Russian
On Tue, May 31, 2011 at 06:01:19PM -0400, karabaja wrote: > Thanks everyone for being so helpful. I've ended up applying Igor's > suggestion. > But I've dropped this line as I wasn't sure what to do with it: > "~(?i)(Purebot|Lipperhey|MaMaCaSpEr|libwww-perl|Mail.Ru|gold crawler)" > 1; > > I am guessing it can be used if I want to match more then just google's >by Igor Sysoev - Nginx Mailing List - English
On Tue, May 31, 2011 at 10:04:11PM +0100, António P. P. Almeida wrote: > On 31 Mai 2011 20h34 WEST, igor@sysoev.ru wrote: > > > > It works since 0.9.6. I'm going to change case sensitivity like this > > > > ~Google # case sensitive > > ~*google # case insensitive > > > > Expression compatible with old and new syntax (for gracefull > >by Igor Sysoev - Nginx Mailing List - English
On Tue, May 31, 2011 at 11:36:25PM +0400, Vitaly Belenky wrote: > Спасибо, всё получилось. > > > > find /path/to/images -exec cat {}> /dev/null \; > > Приятная штука :) > > > Съел всю память(ну даже без этой команды), оставил 420мб, больше не > хочет. Вопрос тby Igor Sysoev - Nginx Mailing List - Russian
On Wed, Jun 01, 2011 at 02:47:28AM -0400, igor.goncharenko wrote: > Hi! > > После апгрейда freebsd на 8.2 и nginx на 1.0.3, при > старте стала появляться ошибка: > nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is > ok > nginx: sem_init() failed (28: No space left on device) > nginx: sem_init() failedby Igor Sysoev - Nginx Mailing List - Russian
On Tue, May 31, 2011 at 05:33:22PM -0400, Ncs wrote: > Здравствуйте, есть такая проблемка > location / { > set $h "site.ru"; > proxy_pass http://$h; > resolver 8.8.8.8; > } > это работает, запросы /aaa идут на site.ru/aaa > > Допустим, надо чуть-чуть поменять путь > locatiby Igor Sysoev - Nginx Mailing List - Russian
On Tue, May 31, 2011 at 10:19:13PM +0300, Alexandr Gomoliako wrote: > On 5/31/11, karabaja <nginx-forum@nginx.us> wrote: > > syntax would be in nginx config or if it is even possible to match both > > statements. > > It is possible and there are different ways to match two conditions. I > like this one: > > geo $google { > default 0; > 66.0.0.0/8by Igor Sysoev - Nginx Mailing List - English
On Tue, May 31, 2011 at 11:11:31PM +0400, Igor Sysoev wrote: > 31.05.2011, в 21:37, Igor Sysoev <igor@sysoev.ru> написал(а): > > > On Tue, May 31, 2011 at 03:04:29AM +0700, Kirill Morozov wrote: > >> 2009/9/8 Igor Sysoev <is@rambler-co.ru> > >> > >>> On Tue, Sep 08, 2009 at 01:51:31PM +0400, ilya@aniskovets.com wrote: > >>&gby Igor Sysoev - Nginx Mailing List - Russian
31.05.2011, в 21:37, Igor Sysoev <igor@sysoev.ru> написал(а): > On Tue, May 31, 2011 at 03:04:29AM +0700, Kirill Morozov wrote: >> 2009/9/8 Igor Sysoev <is@rambler-co.ru> >> >>> On Tue, Sep 08, 2009 at 01:51:31PM +0400, ilya@aniskovets.com wrote: >>> >>>> Чтобы докачка не работала, можно просто уby Igor Sysoev - Nginx Mailing List - Russian
On Tue, May 31, 2011 at 03:04:29AM +0700, Kirill Morozov wrote: > 2009/9/8 Igor Sysoev <is@rambler-co.ru> > > > On Tue, Sep 08, 2009 at 01:51:31PM +0400, ilya@aniskovets.com wrote: > > > > > Чтобы докачка не работала, можно просто удалить из заголовка поле > > > content-length. Тогда даунлоby Igor Sysoev - Nginx Mailing List - Russian
On Tue, May 31, 2011 at 07:16:49PM +0400, Глазачев Владимир wrote: > Все добрый день > Вопрос следущий, есть урл http://www.domen.com/bla-bla-vs-%E2%80%8Bbla необходимо сделать редирект на > http://www.domen.com/bla-bla-vs-bla/ > > Такая конструкция не работает: > > locatiby Igor Sysoev - Nginx Mailing List - Russian
On Tue, May 31, 2011 at 11:05:09AM -0400, csg wrote: > mow Wrote: > ------------------------------------------------------- > > You may try "fuse" (http://fuse.sourceforge.net/), > > implement a tiny file > > system easily which uses mysql as data source and > > acts as a real file > > system. > > Correct me if I am wrong, but I reckon that coby Igor Sysoev - Nginx Mailing List - English
On Tue, May 31, 2011 at 05:56:30PM +0400, Vitaly Belenky wrote: > 31.05.2011 17:05, Евгений Григоренко пишет: > > sysctl kern.maxvnodes > Спасибо! > > > Начал кушать, но медленно.. 2мб в секунду. В целом то хорошо - наестся > рано или поздно. Но вот при ребуте доby Igor Sysoev - Nginx Mailing List - Russian
On Wed, Jun 01, 2011 at 12:06:12AM +1000, SplitIce wrote: > ease of management is the main positive, I recently moved away from it What do you mean by "ease of management". As for me there is no easier management than file system one. You have a lot of tools - find, grep, etc. > myself to a filesystem based solution for one of my clients. The largest > disadvantage is the sizby Igor Sysoev - Nginx Mailing List - English
On Wed, Jun 01, 2011 at 01:27:07AM +1200, Ryan B wrote: > ah, discovered worker_priority variable :) This is not variable. This is a directive. -- Igor Sysoev _______________________________________________ nginx mailing list nginx@nginx.org http://nginx.org/mailman/listinfo/nginxby Igor Sysoev - Nginx Mailing List - English
On Wed, Jun 01, 2011 at 01:04:34AM +1200, Ryan B wrote: > Is it possible to set the nice values for nginx worker processes, the > main processs can be tweaked easily.. but I'd like to tweak the worker > processes too.. worker_priority -10; -- Igor Sysoev _______________________________________________ nginx mailing list nginx@nginx.org http://nginx.org/mailman/listinfo/nginxby Igor Sysoev - Nginx Mailing List - English
On Tue, May 31, 2011 at 07:20:34AM -0400, csg wrote: > Hi! > > I am curious if is feasible to have Nginx deliver binary blob data which > is currently stored in a MySQL database. I was loosely following the > examples mentioned in agentzh's blog [1] which work all fine for me with > non-binary data. But as JSON is used for intermediate serialization > which is not binary safeby Igor Sysoev - Nginx Mailing List - English
On Tue, May 31, 2011 at 04:45:04AM -0400, FoMa wrote: > Есть сайт с кучей алиасов, задача со > всех них сделать редирект на основной > example.com . Я понимаю что нужно провери > начинается ли $host с example.com и если не Нет, проверять $host не нужно: http://ngiby Igor Sysoev - Nginx Mailing List - Russian
On Tue, May 31, 2011 at 04:21:57PM +0900, David Somers Harris wrote: > Ah I see. Too bad. > > When the Image Filter Module crops, does it crop out the right and bottom > ends only, or does it evenly crop the top, left, right and bottom out? It tries to keep as much as possible of an original image: The image is scaled on one dimension and then is croped on other dimension. -- Igorby Igor Sysoev - Nginx Mailing List - English
On Tue, May 31, 2011 at 02:06:38PM +0800, Alexey Samoylov wrote: > 31.05.2011 13:00, Igor Sysoev пишет: > > Зачем здесь постоянный редирект ? > > > > - error_page 503 =301 http://streamer2/stream/; > > + error_page 503 http://streamer2/stream/; > > > > Ошибся кодом. В таком варианте оby Igor Sysoev - Nginx Mailing List - Russian
On Tue, May 31, 2011 at 12:39:04PM +0800, Alexey Samoylov wrote: > 30.05.2011 21:21, Chubarov Andrey пишет: > > Доброго времени суток! > > > > Подскажите пожалуйста, есть ли в nginx внутреняя переменная, которая > > указывает на количество установленных в даby Igor Sysoev - Nginx Mailing List - Russian
On Mon, May 30, 2011 at 07:03:17PM -0400, atipico wrote: > Thank you Igor. > > So what is the difference among doing what you told and this? > rewrite ^/adm$ /wp/wp-login.php; Configuration maintenance. If you will not use rewrites and regex locations, then you can easy change large configuration. > Isn't it the case of usind the "alias"? "alias" is for statby Igor Sysoev - Nginx Mailing List - English
On Mon, May 30, 2011 at 08:07:03PM -0400, pk899 wrote: > Hi. Probably a silly question, but I have noticed that if I have a > properly tabbed/spaced config file, the performance of nginx goes down. > Is this a valid observation? No. -- Igor Sysoev _______________________________________________ nginx mailing list nginx@nginx.org http://nginx.org/mailman/listinfo/nginxby Igor Sysoev - Nginx Mailing List - English
On Tue, May 31, 2011 at 02:14:04AM +0100, gvim wrote: > Nginx 1.0.3 > > I have a virtual host file with a simple config: > > server { > listen 8080; > server_name domain.com www.domain.com; > root /var/www/html/dm2011/pub; > access_log /var/log/nginx/access.log main; > > location / { > index index.htm index.html; >by Igor Sysoev - Nginx Mailing List - English
On Mon, May 30, 2011 at 09:40:09AM -0400, atipico wrote: > Please, how can I make this simple operation: > > I wish that every requests for uris like: > http://example.com/adm > or: > http://example.com/adm > Goes to the wordpress login page: > wordpress/wp-login.php > (The wordpress installation is inside the folder "wordpress"). > > I've tried: &gby Igor Sysoev - Nginx Mailing List - English
On Sun, May 29, 2011 at 01:34:04PM +0300, Alexandr Gomoliako wrote: > Модуль, добавляющий переменную $referer_host, может быть кому-то еще > понадобится: > https://github.com/zzzcpan/ngx_http_referer_host_module В 0.9.6+ подобная функциональность реализуется через map: map $http_refererby Igor Sysoev - Nginx Mailing List - Russian
On Fri, May 27, 2011 at 09:24:09AM -0700, Mon Yang wrote: > Hi, > > I did QualysGuard scan and it says "Web Server Internal IP > Address/Internal Network Name Disclosure Vulnerability". It suggest > for Apache, I need to: > > > For Apache Web Server: > Modify the Apache configuration file as follows: > - Set "ServerName" to a proper FQDN. >by Igor Sysoev - Nginx Mailing List - English
On Fri, May 27, 2011 at 12:19:47PM -0400, pk899 wrote: > thanks for this. but before I try all this on a production server, > couple questions: > > 1. if this works with NGINX on port 81, can this work in the future on > port 80? So will nginx and apache both be on port 80? I doubt it but > want to confirm. Apache may listen on 127.0.0.1:80, while nginx may listen on *:80. &by Igor Sysoev - Nginx Mailing List - English
On Fri, May 27, 2011 at 12:26:47PM -0400, kheraud wrote: > Thank you for the hint, > > It seems to work (for the first page) but in fact it leads to some > errors... You added "/" to "proxy_pass http://localhost:8080/myapp". But > I ommitted it after having seen that it leads to the following mistakes > on the tomcat side : > > The requested resource (by Igor Sysoev - Nginx Mailing List - English
![]() |
![]() |
![]() |
![]() |
|