nginx 1.9.5 and realip

2015-09-27 Thread Frank Liu
Hi all, Just tried latest 1.9.5 rpm that has realip module enabled. The $remote_port variable becomes blank. Is that known? Is there another way I can get the remote_port? Thanks! Frank ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mai

Re: nginx systemd reload service command skips configtest

2015-09-27 Thread Christ-Jan Wijtmans
i can confirm systemd will stop nginx. Live long and prosper, Christ-Jan Wijtmans https://github.com/cjwijtmans http://facebook.com/cj.wijtmans http://twitter.com/cjwijtmans On Sun, Sep 27, 2015 at 5:20 PM, nanaya wrote: > >> On Sat, Sep 26, 2015 at 11:03 PM, Per Hansson >> wrote: >> > Hi, th

Re: nginx systemd reload service command skips configtest

2015-09-27 Thread nanaya
> On Sat, Sep 26, 2015 at 11:03 PM, Per Hansson > wrote: > > Hi, the "nginx.service" file shipped with systemd rpm's both in nginx's > > stable repository and epel for CentOS7 / RHEL7 do not perform a "configtest" > > when "systemctl reload nginx" is issued. > > So if there is an error in the con

Re: Preload Files Module for Nginx

2015-09-27 Thread Christ-Jan Wijtmans
Doesnt linux cache files in RAM already? Live long and prosper, Christ-Jan Wijtmans https://github.com/cjwijtmans http://facebook.com/cj.wijtmans http://twitter.com/cjwijtmans On Thu, Sep 24, 2015 at 3:36 PM, vbresults wrote: > Typo; for preload_files_context_local I meant: > > Default: — in h

Re: nginx systemd reload service command skips configtest

2015-09-27 Thread Christ-Jan Wijtmans
I support this thought. Live long and prosper, Christ-Jan Wijtmans https://github.com/cjwijtmans http://facebook.com/cj.wijtmans http://twitter.com/cjwijtmans On Sat, Sep 26, 2015 at 11:03 PM, Per Hansson wrote: > Hi, the "nginx.service" file shipped with systemd rpm's both in nginx's > stable

Re: nginx nested location and different basic authentication file

2015-09-27 Thread Christ-Jan Wijtmans
Not an nginx expert but i think you can use a map http://nginx.org/en/docs/http/ngx_http_map_module.html You dont even need an if. Live long and prosper, Christ-Jan Wijtmans https://github.com/cjwijtmans http://facebook.com/cj.wijtmans http://twitter.com/cjwijtmans On Sun, Sep 27, 2015 at 10:32

nginx nested location and different basic authentication file

2015-09-27 Thread cacrus
Hi , I am trying to setup different authentication based on different strings in the $request , here is my case . location /parent/ { set $basic_file /nginx/conf/.htpasswd; if ($request_uri ~ (visualize|dashboard|settings)){ set $basic_f