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 m

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 w

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 fo

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 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/* > etc.. >

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 ^~ /uri-segm

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 simil

Re: Url rewriting faliure in case of UTF8 urls

2013-12-05 Thread Francis Daly
On Wed, Dec 04, 2013 at 07:42:17PM -0500, omidr wrote: Hi there, > As an example I want to redirect "/آرایشگر" to "/استخدام آرایشگر" and I am > using a rewrite rulr like the one below but things go wrong and I get a > 404. Can I suggest you try to simplify the test case, so that you can see what

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: 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 conf

dummy question...

2013-12-05 Thread Laurent CREPET
Just read this: http://wiki.nginx.org/Pitfalls#Root_inside_Location_Block ...which recommands to put root outside location block... However, the default.conf installed from nginx rpm contains exactly what should not de done, right ? --- location / { root /usr/share/nginx/html;

Re: Rewrite URL with parameters

2013-12-05 Thread Jonathan Matthews
On 5 December 2013 17:09, Raphael R. O. 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 > ^/category-body/categories/promotional(.*)utm_source=PromoCode&utm_medium=AddPromo&utm_campaign=Prom

Rewrite URL with parameters

2013-12-05 Thread Raphael R. O.
Hi guys, I'm trying to rewrite an url with a few parameters, but unsuccessfully. The URL: https://www.mysite.com.br/category-body/categories/promotionalXXX?utm_source=PromoCode&utm_medium=AddPromo&utm_campaign=PromoCode_AddPromo_moneycampaing I need rewrite to: https://www.mysite.com.br/digita

Re: Imap proxy

2013-12-05 Thread volga629
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 plain 143. Is no really big sense to use proxy for services located on same

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 ht

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 http://mailman.nginx.org/

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 / {

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

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: 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 ha

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 cod

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 apns.

Re: using nginx to cache file serving

2013-12-05 Thread Richard Stanway
1. Depends a lot on your environment. If you are sure you are I/O bound, there isn't too much you can tweak. 2. How are you measuring this? It's normal for there to be very little "free" memory on Linux due to buffers and filesystem caches. Look at the -/+ buffers/cache line for your available mem

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 ha

Why the status code restriction on add_header?

2013-12-05 Thread Richard Stanway
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 equals 200, 201, 204, 206, 301, 302, 303, 304, or 307. " I was wondering what t

Sphinx2 Search Platform Upstream Module Pre-Release

2013-12-05 Thread Reetesh Ranjan
Hello! I have developed an upstream module for Sphinx2 search platform. It's available at: https://github.com/reeteshranjan/sphinx2-nginx-module It talks to Sphinx2 searchd component for performing search. It's in infant stage right now and more work is needed to get to production ready. I am wo