Re: Nginx only serves 1 App

2018-05-23 Thread Nginx-Chris
Hi Moshe This works absolutely perfect. Thank you so much for letting me (us) know how to use the config arrangement. Let me summarize the steps also for other users that might stumble over this thread (and please feel free to correct/improve if required). After performing the certbot command th

Re: Block countries - Nginx

2018-05-23 Thread Peter Booth
If you can dump your http traffic you will probably see a headers with names like: X-Real-IP X-Forwarded-For Sent from my iPhone > On May 23, 2018, at 11:25 PM, Frank Liu wrote: > > Since only load balancer sees the client IP, it has to pass that information > to nginx. You need to talk to yo

Re: Block countries - Nginx

2018-05-23 Thread Frank Liu
Since only load balancer sees the client IP, it has to pass that information to nginx. You need to talk to your LB engineer and depending on the type of LB, there are different ways to do that. Once the information is passed to nginx, nginx will expose it as a variable, which can then be used by th

Re: Block countries - Nginx

2018-05-23 Thread Sathish Kumar
How can I get the client IP address if the request is coming through load balancer or Proxy and pass it to default nginx geoip module to block it based on the Country. On Tue, May 22, 2018, 4:45 PM Frank Liu wrote: > Instead of the default nginx geoip module , I suggest you switch to third > par

Re: Nginx only serves 1 App

2018-05-23 Thread Moshe Katz
Here's how you would do it: First, run this command (substituting your example of `new.page.com` for any other new domain): certbot certonly --webroot -w /usr/share/nginx/html -d new.page.com *Note that the "webroot" directory is the same for ALL sites here, because of these lines: https://gist

Re: PHP Pages

2018-05-23 Thread Aleksandar Lazic
Hi. On 23/05/2018 16:27, mdm100 wrote: My nginx vhost setup will serve .html files but it throws the 503 Bad Gateway error when trying to serve a .php file. This server runs Laravel vhost with not issue, it just will not run plain .php files. Server: Ubuntu 17 server { listen 80; liste

Re: PHP Pages

2018-05-23 Thread mdm100
mdm100 Wrote: --- mdm100 Wrote: --- My nginx vhost setup will serve .html files but it throws the 502 Bad Gateway nginx/1.12.1 (Ubuntu) Gateway error when trying to serve a .php file. This

Re: PHP Pages

2018-05-23 Thread mdm100
mdm100 Wrote: --- > My nginx vhost setup will serve .html files but it throws the 502 Bad Gateway >nginx/1.12.1 (Ubuntu) > Gateway error when trying to serve a .php file. > > This server runs Laravel vhost with not issue, it just will not run >

PHP Pages

2018-05-23 Thread mdm100
My nginx vhost setup will serve .html files but it throws the 503 Bad Gateway error when trying to serve a .php file. This server runs Laravel vhost with not issue, it just will not run plain .php files. Server: Ubuntu 17 server { listen 80; listen [::]:80; server_name convergeone

Re: Nginx only serves 1 App

2018-05-23 Thread Nginx-Chris
I mean how would the nginx config for new.page.com look like? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,279794,279935#msg-279935 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Nginx only serves 1 App

2018-05-23 Thread Nginx-Chris
Hi Moshe I wanted to come back to you again to thank you very much. I changed my nginx config file arrangement according to your proposal on https://gist.github.com/kohenkatz/08a74d757e0695f4ec3dc34c44ea4369#file-redirect-all-http-to-https-conf And I think it's awesome :-) Very well structured

Re: Nginx Rate limiting for HTTPS requests

2018-05-23 Thread Maxim Dounin
Hello! On Wed, May 23, 2018 at 12:58:53AM -0400, rickGsp wrote: > >>Please show "uname -a", "nginx -V", and "ps -alxww | grep nginx" > >>output. > > #uname -a > Linux localhost.localdomain 3.10.0-693.11.6.el7.x86_64 #1 SMP Thu Jan 4 > 01:06:37 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux > > #nginx

Re: Re: Miss updates? (https://nginx.org/ )

2018-05-23 Thread 鯨井 貴博
Hi, yar Thank you for fast action. Best Regards, Takahiro Kujirai --Original Message-- 差出人:"Yaroslav Zhuravlev" 宛先: CC: 件名:Re: Miss updates? (https://nginx.org/ ) 日時:2018年05月24日(木) 00:40(+0900) >Hello! > >> On 23 May 2018, at 18:07, 鯨井 貴博 >> wrote: >> >> Hi, >> >> I saw https://ngi

Re: Miss updates? (https://nginx.org/ )

2018-05-23 Thread Yaroslav Zhuravlev
Hello! > On 23 May 2018, at 18:07, 鯨井 貴博 > wrote: > > Hi, > > I saw https://nginx.org/ now. > > I found old news. > > Top news is "2015-05-08". > And I scrolled down, "2018-02-20", "2015-12-09", "2015-12-08". > > Is this miss updates? Thank you, fixed: https://nginx.org/ […] Best r

Re: 403 Forbidden

2018-05-23 Thread Pratyush Kumar
You don't seem to have a index file in web root___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Nginx redirection

2018-05-23 Thread Aleksandar Lazic
Hi. On 16/05/2018 02:22, Enrico wrote: Hi, I have a nginx server (called mynginxserver) and need to redirect some urls : I want to have all url with the string tso: http://www.mynginxserver.com/XXtsoX redirected to https://myserver.com/XXtsoX if the string tso is in the url

Re: Nginx thread pool is not working in 1.14 in custom module

2018-05-23 Thread isolomka
Thanks a lot, fix seems to be working fine. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,279917,279927#msg-279927 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: "This page isn't working" error

2018-05-23 Thread Aleksandar Lazic
Hi. On 23/05/2018 13:37, Friscia, Michael wrote: I wonder if anyone knows how to debug this. I have two URLs: Working https://www.yalemedicine.org/doctors/marcus_bosenberg/ not working https://www.yalemedicine.org/doctors/antonio_subtil/ Looks like your SDL Component does not exist for this ur

403 Forbidden

2018-05-23 Thread mdm100
403 Forbidden nginx/1.12.1 (Ubuntu) Distributor ID: Ubuntu Description:Ubuntu 17.10 Release:17.10 Codename: artful I have many virtual sites running on my server identical to this one, but for some reason I have run into the 403 wall. Permissions for my virtual website dir s

Re: Nginx thread pool is not working in 1.14 in custom module

2018-05-23 Thread Maxim Dounin
Hello! On Wed, May 23, 2018 at 09:08:08AM -0400, isolomka wrote: > Thanks for the response. > The main issue is that now request is closed before actual task is done in > thread pool. > How can I avoid that? > It worked fine before the upgrade. > What is correct thread pool usage in custom modul

Re: "This page isn't working" error

2018-05-23 Thread Friscia, Michael
Never mind, I had an error in a config file that was forcing a 444 response based on a regex that accidentally matched the second URL… ___ Michael Friscia Office of Communications Yale School of Medicine (203) 737-7932 - office (203) 931-5381 - mobile http:

"This page isn't working" error

2018-05-23 Thread Friscia, Michael
I wonder if anyone knows how to debug this. I have two URLs: Working https://www.yalemedicine.org/doctors/marcus_bosenberg/ not working https://www.yalemedicine.org/doctors/antonio_subtil/ From the Nginx configuration side, these go through the same identical configuration. If I go to the upstre

Re: Nginx thread pool is not working in 1.14 in custom module

2018-05-23 Thread isolomka
Thanks for the response. The main issue is that now request is closed before actual task is done in thread pool. How can I avoid that? It worked fine before the upgrade. What is correct thread pool usage in custom module in 1.14? Here is my request handler for reference: static ngx_int_t ngx_http

Re: Nginx thread pool is not working in 1.14 in custom module

2018-05-23 Thread Maxim Dounin
Hello! On Wed, May 23, 2018 at 05:33:51AM -0400, isolomka wrote: > Hi, > I have custom nginx module which uses thread pool to serve blocking > synchronous calls to our library. > It worked fine with nginx version 1.12.1. > > Now we've tried to upgrade nginx to latest 1.14 version and it seems th

Nginx thread pool is not working in 1.14 in custom module

2018-05-23 Thread isolomka
Hi, I have custom nginx module which uses thread pool to serve blocking synchronous calls to our library. It worked fine with nginx version 1.12.1. Now we've tried to upgrade nginx to latest 1.14 version and it seems thread pool is not working with that version. After some debugging we've found t

Nginx is not logging QUIT signal handling logs

2018-05-23 Thread kunaldas
Hi, I am sending QUIT signal to master process and it is terminating nginx also, but I am not able to get any logs for to verify for gracefully exit. I am using debug log level in http context as mentioned below. error_log /etc/nginx/logs/ferror.log debug; Sending signal to the NGINX master pro