Re: Nginx real_ip module doesn't work in some conditions

2016-08-27 Thread Francis Daly
On Sat, Aug 27, 2016 at 03:02:16PM -0400, romkaltu wrote: Hi there, > So I have Nginx proxy and some servers running behind it. I need to know > real users IP not proxy, so I using real_ip module. Everything is working as > expected, but if I configure vhost like subdomain.domain.com backend

Re: Location Alias not working

2016-08-27 Thread Francis Daly
On Sat, Aug 27, 2016 at 11:18:04PM +0200, Andrew Holway wrote: Hi there, > Can you post your full config pls? == server { listen 8080; server_name x1; location /foo/ { alias /var/www/foo/; } } == curl -v -H Host:x1 http://127.0.0.1:8080/foo/a gives a 200 with the

Re: Pretty printer for the Nginx config?

2016-08-27 Thread vasilevich
oops, I ment https://nginxbeautifier.com Posted at Nginx Forum: https://forum.nginx.org/read.php?2,250211,269236#msg-269236 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Location Alias not working

2016-08-27 Thread Andrew Holway
Hi Francis, Can you post your full config pls? Thanks, Andrew On Sat, Aug 27, 2016 at 10:50 PM, Francis Daly wrote: > On Sat, Aug 27, 2016 at 10:38:27AM +0200, İhsan Doğan wrote: > > Hi there, > > > I've defined a location alias in my nginx.conf: > > > location

Re: Location Alias not working

2016-08-27 Thread Francis Daly
On Sat, Aug 27, 2016 at 10:38:27AM +0200, İhsan Doğan wrote: Hi there, > I've defined a location alias in my nginx.conf: > location/foo/ { > alias /var/www/foo/; > } > Even the directory /var/www/foo exists, Nginx is returns a 404. As I > understand,

Nginx real_ip module doesn't work in some conditions

2016-08-27 Thread romkaltu
So I have Nginx proxy and some servers running behind it. I need to know real users IP not proxy, so I using real_ip module. Everything is working as expected, but if I configure vhost like subdomain.domain.com backend getting Nginx proxy IP. Here is my Nginx config sample set_real_ip_from

NJS module string to lowercase

2016-08-27 Thread Alexander Moskalenko
Приветствую! Есть локейшн задача которого делать редирект с приведением uri к нижнему регистру. В данный момент используется LUA, который хотелось бы заменить на "родной" модуль. LUA блок выглядит так: location ~ [A-Z] { rewrite_by_lua_block { return

have you seen that stuff?

2016-08-27 Thread Lali Avlokhova
Hey, Look what I've just found! Have you already seen that great stuff? Check it out Yours truly, Lali Avlokhova ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: No HTTPS on nginx.org by default

2016-08-27 Thread B.R.
No one is and nor anyone has to be. Maybe less peremptory abrupt answers the next time someone points out a potential problem and no hard words about despotism when views are shared might help? :o) Thanks for having taken the necessary time on this. Keep up the good work! No hard feelings. ---

Re: Pretty printer for the Nginx config?

2016-08-27 Thread vasilevich
well your formatter doesn't work anymore, here is a better one: https://nginxformatter.com and if you want to run it locally and/or view the source: https://github.com/vasilevich/nginxbeautifier available as a npm package. Posted at Nginx Forum:

[nginx] internal location keepalive_requests issue

2016-08-27 Thread baidu
location /hls { error_page 404 = @hls; keepalive_requests 1000; } location @hls { # Serve HLS fragments types { application/vnd.apple.mpegurl m3u8; video/mp2t ts; } root /tmp; add_header Cache-Control no-cache; keepalive_requests 1000; } keepalive_requests must be large enough in

Location Alias not working

2016-08-27 Thread İhsan Doğan
Hi, I've defined a location alias in my nginx.conf: server { listen 80; server_name example.org www.example.org; [...] location/foo/ { alias /var/www/foo/; } } Even the directory /var/www/foo exists, Nginx is