Handling redirects among upstream servers (3 replies)
Hello,I'm trying to configure Nginx to access a cluster of application servers using a simple proxy with multiple application servers in the upstream. The application servers use a REST api for object...
View Articlenginx as pop3/imap proxy (1 reply)
Hello,I'm using with satisfaction nginx as pop3 and imap proxy of 4/5 mailservers.I have just one problem:when one server is down, nginx can't authenticate the user and the usermail client request the...
View Articlenginx uwsgi connection timeout (no replies)
Hello,I have nginx 1.6.1 setup in front of uwsgi 2.0.7 using uwsgi_pass, which has been working very well for me except for one request. When I make the failing request uwsgi processes the request and...
View ArticleHow to follow request path within the config? (1 reply)
Hello, I'm hitting my head against a wall since a couple days ago. Last paragraph has the big question, the rest is context.I run a fairly big Wordpress blog, with a somewhat convoluted configuration...
View ArticleURI rewriting based on arguments (no replies)
Hello,Trying to rewrite an URI based on an argument, I cannot match it otherwisethan by using rewrite.The problem is I fail to achieve a working recipe...
View ArticleNginx with PHP on Windows (6 replies)
So i am curious on the security impacts on a windows server running nginx and phpAnd if you have the following php.ini settings disabled."cgi.force_redirect = 0"I saw itpp2012 posted the...
View ArticleCannot run ASP.NET Web API with Nginx and Mono on Ubuntu (1 reply)
Good day,first of all I am new to Linux OS and mono.I am tryiing to run my ASP.NET Web API on Ubuntu with Nginx and Mono. Here is what I've done so far:I have installed mono, nginx, fastcgi-server4 and...
View ArticleLoad balancer question (1 reply)
Hi everyone,I am starting to work with nginx to use it as a load balancer for a web service. Basically, what I am try to configure is something like:$ cat nginx.conf…http {upstream load_balancer...
View ArticleHow to access query parameter names with '-' in it (1 reply)
If query parameters in the request looks like this/something.cgi?param_name=1¶m-name=2I can access 'param_name' as $arg_param_name. How do I access 'param-name' though? $arg_param-name will not...
View ArticleHow to use Nginx to restrict access to everyfiles to 127.0.0.1, except the...
HI,I want to configure our nginx to be a little more paranoid concerning file access.Right now, i am using rules like :location /includes {allow 127.0.0.1;deny all;}... but i need to repeat this kind...
View ArticleHttpLuaModule create asynchronous subrequests (no replies)
Hi,With the help of HttpLuaModule I'm trying to duplicate every requestinto two upstreams. Here is my configuration:site.conf---upstream prod_upstream {server 127.0.0.1:5000;server...
View Articlengx.shared.dict - locking mechanism ? (1 reply)
Hi guys,I was wondering what happens when multiple workers access the ngx.shared.dict in the http lua module ? Are there conflicts/locking that could potentially impact performance of nginx? We are...
View ArticleSkip Location Based On Query String Parameter? (no replies)
We'd like to bypass a location if a query string varaible is present. Is this an approriate place to use "if", and if so, how should it be done? If the URL is a forward slash, followed by anything,...
View ArticleRate-limiting across connections (1 reply)
Hello,The limit_rate<http://nginx.org/en/docs/http/ngx_http_core_module.html#limit_rate>directive documentation clearly states that it is applied on a per-requestbasis.How would one rate-limit a...
View ArticleConfigurations strangeness - mistake or bug? (2 replies)
Hi,I'm facing a strange issue configuring virtual hosts on a server. Idon't see any misconfiguration yet it does not work as I expect it. I'dlike to ask for your help in debugging this. If the...
View ArticleDisable keep_alive based on specific useragent (2 replies)
Due to a bug in iOS 8, I want to disable http keep-alive for all iOS 8useragents for now.https://github.com/AFNetworking/AFNetworking/issues/2314I can't see a way to do this in nginx at the moment.The...
View Articledefault nginx rewrite with regexp (no replies)
Hello,I'm working on a default server_name that match everything but www.domain.tldthen rewrite to www.domain.tld. I use nginx 1.2.1-2.2+wheezy3 with a big regexp.I have an issu with tld that contain a...
View ArticleWhat is the best way to reallocate memory for char array? (4 replies)
For example I've allocated memory for char *str:str = ngx_pnalloc(r->pool, len1);Then I've added some data to "str":ngx_sprintf(str, "abc");How should I reallocate this memory? Should I use:str =...
View Article[ANN] Windows nginx 1.7.8.1 Gryphon (no replies)
21:38 17-11-2014 nginx 1.7.8.1 GryphonBased on nginx 1.7.8 (17-11-2014, last changeset 5904:abb466a57a22) with;+ Naxsi WAF v0.53-3 (upgraded 15-11-2014)+ https://github.com/nginx/nginx/pull/7 has been...
View Article[nginx module] Convert ngx_chain_t to buffer memory (no replies)
Hi,I am looking for a way to read ngx_chain_t buffer like what we do with buffer memory (file-> buffer memory)Is there any way we can do it with internal nginx api?Thanks,
View Article