RE: Help on designing using multiple location/upstream modules

2013-12-05 Thread Reetesh Ranjan
Hi! Date: Sat, 30 Nov 2013 14:37:04 -0800 Subject: Re: Help on designing using multiple location/upstream modules From: agen...@gmail.com To: nginx-devel@nginx.org Hello! On Sat, Nov 30, 2013 at 11:05 AM, Reetesh Ranjan wrote: Thanks for the help! Going by the documentation of the

RE: How to implement handshake in an upstream module?

2013-12-05 Thread Reetesh Ranjan
Hi! Date: Thu, 5 Dec 2013 13:23:55 -0800 Subject: Re: How to implement handshake in an upstream module? From: agen...@gmail.com To: nginx-devel@nginx.org You're essentially doing pipelined requests here and you will run into the following limitation in the nginx core:

Re: Re: map regexp непонятки

2013-12-05 Thread Kalinin Mike
Вроде разобрался.пока работает так:map $connection $upstream_group {        default 0;        "~(?hash_id\d)$" $hash_id;    }Про split_clients знаю, но он пока не подходит. Спасибо. Hello!On Wed, Dec 04, 2013 at 01:58:41PM +0400, Kalinin Mike wrote:Показать цитату от «PM +0400, Kalinin

Re: Cache Revalidate

2013-12-05 Thread grygory.mos
Вот и я о том же - если страница генерится 0.8 секунд, то как может быть недопустимым кешировать её на 1 секунду? Откуда взялось требование о недопустимости? В моем случаи такое требования появилось, когда нужно было проверять права доступа юзера на каждом запросе, но для этого нужны куки

using nginx to cache file serving

2013-12-05 Thread mojiz
Hi We are using nginx SATA disks on several of our file servers.However after hitting 12MBytes/s of port speed (server nic is a 1gbps), the server gets down to it's knees. SSH becomes very slow/unresponsive and our users complain about slow speeds and dropped connections. Our users/downloaders

TCP -TLS Redirection

2013-12-05 Thread Chaitanya Kamsu
Hi Team , I want to do a tcp to tls proxy. we need to communicate to apple server via tls (tcp over ssl). our server does not have internet access so we need to use a proxy server that has internet access which can * either accept the tcp communication and do a tls communication with

Re: Why the status code restriction on add_header?

2013-12-05 Thread Maxim Dounin
Hello! On Thu, Dec 05, 2013 at 11:54:56AM +0100, Richard Stanway wrote: Hello, I'm trying to add some custom headers to a 403 response, but had a hard time doing so. Looking through the docs, it seems add_header Adds the specified field to a response header provided that the response code

Re: using nginx to cache file serving

2013-12-05 Thread mojiz
Thanks for the answeres. about the memory the problem is I'm hitting this on only some of my servers but not all, one of my servers has only 3GB memory which 1G is used but on another 16GB/16GB is used. The ngx_slowfs_cache module is usefull when the server has 2 type disks, SATA and SAS, but I

Problem with Upstream over SSL

2013-12-05 Thread cschiewek
I was proxying to an IIS server on 443 on nginx 1.1 on FreeBSD and it worked perfectly fine. We moved to nginx 1.4 running on ubuntu and now it won't work. The following works perfect: server { location / { proxy_pass http://server.domain.com } } But when I change it to server {

Re: location{} hassles:(

2013-12-05 Thread Maxim Dounin
Hello! On Thu, Dec 05, 2013 at 01:10:53AM +, Matthew Ngaha wrote: Hey all I can't seem to get the hang of how to use/write location blocks. I have mailed the list before and I do understand how it works but what I've tried fails. I have tried a few things and in both cases i don't

Re: Problem with Upstream over SSL

2013-12-05 Thread Maxim Dounin
Hello! On Thu, Dec 05, 2013 at 09:44:55AM -0500, cschiewek wrote: I was proxying to an IIS server on 443 on nginx 1.1 on FreeBSD and it worked perfectly fine. We moved to nginx 1.4 running on ubuntu and now it won't work. The following works perfect: server { location / {

Imap proxy

2013-12-05 Thread volga629
Hello Everyone, Is mail imap proxy supports SSL or STARTTLS for connections to backend server ? Slava. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,245255,245255#msg-245255 ___ nginx mailing list nginx@nginx.org

Re: Imap proxy

2013-12-05 Thread Maxim Dounin
Hello! On Thu, Dec 05, 2013 at 10:51:04AM -0500, volga629 wrote: Hello Everyone, Is mail imap proxy supports SSL or STARTTLS for connections to backend server ? No. SSL/STARTTLS is only supported for client connections. Backend network is assumed to be non-hostile. -- Maxim Dounin

Re: Rewrite URL with parameters

2013-12-05 Thread Jonathan Matthews
On 5 December 2013 17:09, Raphael R. O. rabe...@gmail.com wrote: Hi guys, I'm trying to rewrite an url with a few parameters, but unsuccessfully. You're almost there ;-) What i already tried: rewrite

Re: dummy question...

2013-12-05 Thread Laurent CREPET
Le 2013-12-05 19:52, itpp2012 a écrit : In some cases you have no choice then use root inside location (like different roots for different requests in 1 block or a dynamic root for a dynamic request) so when you know what your doing its not a bad thing. Yes, I understand, but to remove

Re: dummy question...

2013-12-05 Thread itpp2012
In some cases you have no choice then use root inside location (like different roots for different requests in 1 block or a dynamic root for a dynamic request) so when you know what your doing its not a bad thing. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,245260,245261#msg-245261

RE: NGINX Module - create variables‏

2013-12-05 Thread Alex Koch
Hello, I would appreciate any hints. Many thanks, Alex From: alex.koch...@outlook.com To: nginx@nginx.org Subject: NGINX Module - create variables‏ Date: Tue, 3 Dec 2013 18:55:52 +0100 Hi, I would like to create a small module which execute some routines, returns an NGX_OK, somewhat

NGINX Location Matching Question - Case insensitive matching at the start of a URI

2013-12-05 Thread Brad Van Sickle
Hi, I'm running in a somewhat urgent issue where I have to make a case-insensitive location match on a URI segment that is at the beginning of the URI. so I want to match /uri-segment/* /URI-segment/* /Uri-Segment/* etc.. I know that this will match the start of the URI: location ^~

Re: NGINX Location Matching Question - Case insensitive matching at the start of a URI

2013-12-05 Thread Jonathan Matthews
On 5 December 2013 23:29, Brad Van Sickle bvs7...@gmail.com wrote: Hi, I'm running in a somewhat urgent issue where I have to make a case-insensitive location match on a URI segment that is at the beginning of the URI. so I want to match /uri-segment/* /URI-segment/* /Uri-Segment/*

Re: Imap proxy

2013-12-05 Thread Maxim Dounin
Hello! On Thu, Dec 05, 2013 at 12:02:44PM -0500, volga629 wrote: Hello Maxim, Thank you for answer. When user connect to proxy with SSL on backend it get destibuted in clear text ? If final server is DR server which another part of the world, there a lot of places to sniff traffic for

Re: NGINX Location Matching Question - Case insensitive matching at the start of a URI

2013-12-05 Thread Brad Van Sickle
Thanks for the quick response! Looks like that is matching how I intend... however it (of course) revealed another issue in my app layer :) But at least the NGINX configs seems correct now. Thanks! On 12/5/2013 6:40 PM, Jonathan Matthews wrote: On 5 December 2013 23:29, Brad Van Sickle

Re: NGINX Module - create variables?

2013-12-05 Thread Maxim Dounin
Hello! On Fri, Dec 06, 2013 at 12:25:48AM +0100, Alex Koch wrote: [...] What I would like is being able to define a couple of config variables once my module is loaded. Is this possible at all? If so, could you point me to a sample/module which does this so I can learn from it? You may