504 Bad gateway error when server date/time is changed

2016-11-03 Thread Hemanth Kumar via nginx
Hi,Following is the environment OS: CentOS 7 (64 bit) NGINX: 1.10.1PHP/PHP-FPM:  5.6 ZF2 Apache 2.4 The Web application is running with HTTPD configured to port 9080 and NGINX on port 80There is an option to set the date, time and timezone from the app.Whenever the date or time is changed on

Re: Nginx SSL Setup

2016-11-03 Thread Rainer Duffner
> Am 03.11.2016 um 20:40 schrieb Ashish Gupta : > > Hello Team, > > I am using NGINX as a web server ot host some of the file and I need some > help with the SSL Setup. Is there a way to create a keystore and use that in > the configuration for SSL setup? > > I don't want to use the self sign

Nginx SSL Setup

2016-11-03 Thread Ashish Gupta
Hello Team, I am using NGINX as a web server ot host some of the file and I need some help with the SSL Setup. Is there a way to create a keystore and use that in the configuration for SSL setup? I don't want to use the self signed certificate, i need sign the certificate with the company CA and

Re: Help how to Proxy without redirect

2016-11-03 Thread Francis Daly
On Mon, Oct 31, 2016 at 09:11:59AM -0400, tbaror wrote: Hi there, > I need to use Nginx as proxy and to pass all communication trough it > without redirecting to original web location. That's what proxy_pass does, more or less. Apart from "proxy" and "all communication"; you'd need different t

Re: Blocking tens of thousands of IP's

2016-11-03 Thread Francis Daly
On Tue, Nov 01, 2016 at 03:15:45PM +, Cox, Eric S wrote: Hi there, > Is anyone aware of a difference performance wise between using > > return 403; > > vs > > deny all; > > When mapping against a list of tens of thousands of ip? I think the answer is "no". I would expect that "return 40

Re: location regex

2016-11-03 Thread Francis Daly
On Tue, Nov 01, 2016 at 06:49:04PM -0400, olat wrote: Hi there, > I am asking about regex in the context of caching some > of the requests on front-end proxy to speed up django app loading dynamic > content where session is involved. Does it mean each of the filtered out > requests we would like

Re: Question about Error logs

2016-11-03 Thread Francis Daly
On Wed, Nov 02, 2016 at 08:49:52AM -0400, pkjchate wrote: Hi there, > Is there any setting I can do, so that Nginx only logs 1 error in same file > only once in the file. I think "no", using just configuration. > The problem is I am getting a lot of same errors and the file gets large in > size

Re: Alias or root directive

2016-11-03 Thread Francis Daly
On Thu, Nov 03, 2016 at 07:26:01PM +0100, Daniel wrote: Hi there, > As i understand the Documentation correct then my entry is correct: > > location /en/holidays/shared/images/ { > alias /mnt/nfs/uat/; > } Yes, that should work. So long as this location{} is the

Re: Alias or root directive

2016-11-03 Thread Daniel
> > If you check your error_log, you should see an indication of what file > nginx tried to serve, if it failed. > Yes it tries to open the doc_root to open that file and this is totally wrong of course because this file is placed on /mnt/nfs/uat/guide/germany/berlin.jpg /var/www/d1/current/we

Re: Alias or root directive

2016-11-03 Thread Daniel
As i understand the Documentation correct then my entry is correct: location /en/holidays/shared/images/ { alias /mnt/nfs/uat/; } Anyways, when i try to use root instead of alias it has same result. Its getting ignored completely in the config. > Am 03.11.2016

Re: Alias or root directive

2016-11-03 Thread Francis Daly
On Thu, Nov 03, 2016 at 06:51:43PM +0100, Daniel wrote: Hi there, > > What one example http request do you want to make? > > I wanted to load such kind of URL: > domain.de//en/holidays/shared/images/guides/germany/berlin.jpg > > > What file on your filesystem do you want nginx to serve in respo

Re: AW: AW: Nginx Kodi User Agent secure_link blocking / banning

2016-11-03 Thread c0nw0nk
Well I do use Nginx with Lua I was planning on writing up a little Lua to replace body_contents outputs and include some JavaScript to append src links. For example in HTML : I would use Lua to obtain the link between the quotation and replace it with "" (Making it empty) and then use Lua to ins

Re: Alias or root directive

2016-11-03 Thread Daniel
> >> i try to add a images folder but seems not work. >> Could someone tell me what i am doing wrong: > > What one example http request do you want to make? > I wanted to load such kind of URL: domain.de//en/holidays/shared/images/guides/germany/berlin.jpg > What file on your filesystem do you

Re: Alias or root directive

2016-11-03 Thread Francis Daly
On Thu, Nov 03, 2016 at 03:12:39PM +0100, Daniel wrote: Hi there, > i try to add a images folder but seems not work. > Could someone tell me what i am doing wrong: What one example http request do you want to make? What file on your filesystem do you want nginx to serve in response to that requ

Alias or root directive

2016-11-03 Thread Daniel
Hi there, i try to add a images folder but seems not work. Could someone tell me what i am doing wrong: location ~ ^/en/holidays/shared/images { root /mnt/nfs/uat/; } When i replace root with alias it has also no effect :-( Cheers Daniel ___

Re: exclude error_page on geoip

2016-11-03 Thread Maxim Dounin
Hello! On Thu, Nov 03, 2016 at 02:05:55PM +0800, Tseveendorj Ochirlantuu wrote: > Hello, > > I need to use geoip module for allow specific region access to my website. > But blocked users should see the error_page. Users are blocked and cannot > see custom error_page. > > I don't want to see er