On Mon, May 10, 2010 at 04:29:46PM +0800, 任晓磊 wrote: > On Mon, May 10, 2010 at 2:07 PM, Igor Sysoev <igor@sysoev.ru> wrote: > > You have to write: > > > > proxy_pass http://$http_host$request_uri; > > > > Since 0.8.25 and 0.7.65, you may write: > > > > proxy_pass http://$http_host; > > But, why didn't I need to specify $rby Igor Sysoev - Nginx Mailing List - English
On Sun, May 09, 2010 at 11:35:23PM +0300, pablo platt wrote: > Hi, > > I'm running a website with nginx as a proxy and for static files. > I'm using the ubuntu lucid nginx package - version 0.7.65 > http://example.com redirect to http://www.example.com - works > https://www.example.com - SSL works > https://example.com redirect to https://www.example.com - doesn't work and &by Igor Sysoev - Nginx Mailing List - English
On Sun, May 09, 2010 at 11:59:00PM +0400, Peter Leonov wrote: > On 09.05.2010, at 13:02, Igor Sysoev <igor@sysoev.ru> wrote: > > > On Sun, May 09, 2010 at 02:03:59AM -0400, useman wrote: > > > >> "444 закрывает соединение без передачи заголовка ответа", тем не м > >> енее FireFox в firebuby Igor Sysoev - Nginx Mailing List - Russian
On Mon, May 10, 2010 at 11:54:45AM +0800, 任晓磊 wrote: > config: > server { > listen [::]:80 default; > server_name _ ; > server_name_in_redirect off; > resolver 74.207.241.5; > > access_log off; > > auth_basic "Private proxy"; > auth_basic_user_file /etc/nginx/auth_basic_user; > >by Igor Sysoev - Nginx Mailing List - English
On Sun, May 09, 2010 at 01:07:57PM +0400, Igor Sysoev wrote: > On Sat, May 08, 2010 at 10:51:32PM -0400, useman wrote: > > > Дефолтно мой nginx отвечал по всему что только мог, в том числе и по прямому ip сервера и по неуказанным поддоменам. > > Нагуглил вот такой кривовby Igor Sysoev - Nginx Mailing List - Russian
On Sat, May 08, 2010 at 10:51:32PM -0400, useman wrote: > Дефолтно мой nginx отвечал по всему что только мог, в том числе и по прямому ip сервера и по неуказанным поддоменам. > Нагуглил вот такой кривоватый вариант решения проблемы: > > server { >by Igor Sysoev - Nginx Mailing List - Russian
On Sun, May 09, 2010 at 02:03:59AM -0400, useman wrote: > "444 закрывает соединение без передачи заголовка ответа", тем не менее FireFox в firebug показывает 200, и показывает пустую страничку, не говоря что сервер недоступен. Это особенности отобby Igor Sysoev - Nginx Mailing List - Russian
On Sat, May 08, 2010 at 03:06:58PM -0400, ideanet wrote: > thanks Igor! > > now I beginning to understand how it works... Read also this: http://nginx.org/en/docs/http/request_processing.html#simple_php_site_configuration -- 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 Fri, May 07, 2010 at 06:44:46AM -0400, demoversion wrote: > вот так http://pastie.org/949894 > > папки статики > /wwwdata/siteifua/public/site.if.ua/*.html > /wwwdata/siteifua/public/site.te.ua/*.html > > картинки, css, js просто в папке > /wwwdata/siteifua/public/images > /wwwdata/siteifua/public/stylesheets > /wwwdata/siby Igor Sysoev - Nginx Mailing List - Russian
On Sat, May 08, 2010 at 02:14:43AM +0400, cronfy wrote: > >> Известно, что встроенный перл работает от root. У меня на этом перле > > > > Кому известно ? > > Обработчики перла работают в воркерах. > > Чтение перловых модулей и компиляцияby Igor Sysoev - Nginx Mailing List - Russian
On Sat, May 08, 2010 at 12:59:02AM +0400, Igor Sysoev wrote: > On Fri, May 07, 2010 at 09:30:18AM -0400, ideanet wrote: > > > Hi, > > I have some trouble to configure correctly the access to phpMyAdmin via SSL. > > 1. problem: when i call the URL https://mydomain.com/phpmyadmin/ I don't have access. > > 2. problem: If I call the URL https://mydomain.com/phpmyadmin/by Igor Sysoev - Nginx Mailing List - English
On Fri, May 07, 2010 at 08:04:38PM -0400, ideanet wrote: > thank you Igor! > just another question: it's possible to define an "allow hosts list" (IP or range of IP) for the phpmyadmin directory ? location ~ ^/phpmyadmin/.+\.php$ { try_files /system/maintenance.html $uri =404; allow 192.168.1.0/24; allow 192.168.3.0/24; deny all;by Igor Sysoev - Nginx Mailing List - English
On Sat, May 08, 2010 at 12:50:00PM +0400, Igor Sysoev wrote: > On Sat, May 08, 2010 at 12:29:29AM -0400, kleinchris wrote: > > > Hello, I wanted to set a custom error_page by setting up: > > if (!-e $request_filename) { > > rewrite ^/de/(.*)$ /de/vbseo.php last; > > } > > if (!-e means if the requestes file don't exists right?! > > > &gby Igor Sysoev - Nginx Mailing List - English
On Sat, May 08, 2010 at 12:29:29AM -0400, kleinchris wrote: > Hello, I wanted to set a custom error_page by setting up: > if (!-e $request_filename) { > rewrite ^/de/(.*)$ /de/vbseo.php last; > } > if (!-e means if the requestes file don't exists right?! > > nginx server 0.8.32 > > Here is my config: http://pastebin.com/2krFJ3sf location / {by Igor Sysoev - Nginx Mailing List - English
On Fri, May 07, 2010 at 10:18:00AM -0400, musa wrote: > i hope somebody can help. didnt find any usefull post nor webside which could help. > > short backend story: there is a web application which generates sites, different sites for different clients (ipod, nokia phones, normal browser etc). its an old application running on windows, with really poor performance. > > anyway, iby Igor Sysoev - Nginx Mailing List - English
On Fri, May 07, 2010 at 11:00:50PM +0700, Edho P Arief wrote: > server { > listen 443 ssl; > server_name myserver.com; > location = /phpmyadmin { > rewrite ^ $scheme://$host$uri/?$args permanent; > } You may use just: location = /phpmyadmin { rewrite ^ /phpmyadmin/ permanent; } nginx should add https, server name, and query string. -- Igor Sysoev http://sby Igor Sysoev - Nginx Mailing List - English
On Fri, May 07, 2010 at 05:20:53PM +0200, Daniel Hahler wrote: > For reference, here is my current workaround. > > Unfortunately, nobody had commented on the suggestion to handle > X-Forwarded-Proto in nginx. Yet? > > > set $my_https "off"; > > In server context: > if ($http_x_forwarded_proto = "https") { > set $my_https "on";by Igor Sysoev - Nginx Mailing List - English
On Fri, May 07, 2010 at 06:48:25PM +0400, Kirill A. Korinskiy wrote: > Игорь, првиет! > > А почему в ngx_vslprintf делаешь (float) va_arg(args, double) в районе 'f'? Там целая часть берётся как ui64 = (int64_t) f; Всё равно много не получится. -- Игорь Сысоев http://sysoev.ru _____________by Igor Sysoev - Nginx Mailing List - Russian
On Sat, May 08, 2010 at 12:55:28AM +0400, cronfy wrote: > Привет! > > Известно, что встроенный перл работает от root. У меня на этом перле Кому известно ? > есть метод, который вызывается на каждый запрос и раз в минуту выводит > в error.log неболby Igor Sysoev - Nginx Mailing List - Russian
On Fri, May 07, 2010 at 09:30:18AM -0400, ideanet wrote: > Hi, > I have some trouble to configure correctly the access to phpMyAdmin via SSL. > 1. problem: when i call the URL https://mydomain.com/phpmyadmin/ I don't have access. > 2. problem: If I call the URL https://mydomain.com/phpmyadmin/index.php, I see the login page. I enter the account and password and after I'm redirected tby Igor Sysoev - Nginx Mailing List - English
On Fri, May 07, 2010 at 05:44:10AM -0400, demoversion wrote: > Спасибо за ответ. Но у меня: > > 404 Not Found > nginx/0.7.64 > > кстати на сайте у меня ruby on rails (passenger) если это важно. > > и раньше для одного домена было как-то так: > if (-f $request_filename.html) { >by Igor Sysoev - Nginx Mailing List - Russian
On Fri, May 07, 2010 at 01:20:00PM +0400, Igor Sysoev wrote: > On Fri, May 07, 2010 at 05:08:25AM -0400, demoversion wrote: > > > Привет. > > Помогите пожалуйста разобраться в конфигах для настройки сервера: > > > > server { > > listen 80; > > server_nameby Igor Sysoev - Nginx Mailing List - Russian
On Fri, May 07, 2010 at 05:08:25AM -0400, demoversion wrote: > Привет. > Помогите пожалуйста разобраться в конфигах для настройки сервера: > > server { > listen 80; > server_name site1.ua site2.ua; # для www*** редиректы > прописаны > rootby Igor Sysoev - Nginx Mailing List - Russian
On Fri, May 07, 2010 at 09:28:58AM +0300, Kirill Pekarov wrote: > Hi, Igor. > > >> >> Первое, что не нравится, это то что нужно повторять в каждом локейшене > >> >> ИФ для каждого бота. Пробовал в секции сервера сделать, но nginx выдал > >> >by Igor Sysoev - Nginx Mailing List - Russian
On Fri, May 07, 2010 at 09:16:21AM +0300, Kirill Pekarov wrote: > Hi, Igor. > > >> Первое, что не нравится, это то что нужно повторять в каждом локейшене > >> ИФ для каждого бота. Пробовал в секции сервера сделать, но nginx выдал > >> ошибку. > &by Igor Sysoev - Nginx Mailing List - Russian
On Fri, May 07, 2010 at 08:36:29AM +0300, Kirill Pekarov wrote: > Добрый день. > > Подскажите плиз по конфигу. > > Первое, что не нравится, это то что нужно повторять в каждом локейшене > ИФ для каждого бота. Пробовал в секции сервера сделать,by Igor Sysoev - Nginx Mailing List - Russian
On Thu, May 06, 2010 at 10:19:07AM -0700, W. Andrew Loe III wrote: > The wiki says: > > "If the directive has the default parameter, then the enclosing server > {...} block will be the default server for the address:port pair. This > is useful for name-based virtual hosting where you wish to specify the > default server block for hostnames that do not match any server_nameby Igor Sysoev - Nginx Mailing List - English
On Thu, May 06, 2010 at 07:56:20AM +0400, ilya@aniskovets.com wrote: > Помогите пожалуйста, мучаюсь уже третий день, столкнулся с такой проблемой: > > Перевожу кучку проектов с apache на nginx-spawn-fcgi-php5.3 А смысл ? Быстрее вряд ли станет. > Ошибки в php (warnby Igor Sysoev - Nginx Mailing List - Russian
On Wed, May 05, 2010 at 10:56:40AM +0000, glen@lumanau.web.id wrote: > When I open /test/article, it's redirected to index page again The request may be proxied to nginx itself, to server { listen 80; server_name www.example.com; Try to set backedn address in proxy_pass http://www.example.com/site/yahoo/; instead of www.example.com. > Best Regards, > > Glenby Igor Sysoev - Nginx Mailing List - English
On Wed, May 05, 2010 at 06:03:19PM +0400, Peter Leonov wrote: > Hello, > > The size of ngx_current_msec depends on the platform as far as it is typedefed via ngx_uint_t. > On the 64-bit it is enough to store the current msecs without an overflow. But on 32-bits it isn't. > > At the ngx_times.c:87 > > ngx_current_msec = (ngx_msec_t) sec * 1000 + msec; > > andby Igor Sysoev - Nginx Development
![]() |
![]() |
![]() |
![]() |
|