Re: nginx https server logs

2017-09-03 Thread foly
Hello, Ish Sookun The status code for HTTP connection is 200. It writes to server log each time I refresh page. The status code for HTTPS connection is 200. But it writes to server log only once. Then I can refresh again and again without logs. That looks very strange. I have found this using thi

Re: Separated reverse proxy for different users

2017-09-03 Thread Ish Sookun
Hi Ivy, On 09/02/2017 11:53 PM, ivy wrote: > location / { > try_files $uri $uri/ =404; > auth_basic "restricted content"; > auth_basic_user_file "/home/secure/.passwords"; > auth_request_set $auth_status $upstream_status; > > proxy_pass http://127.0.01:$rp_port > }

Re: Separated reverse proxy for different users

2017-09-03 Thread Francis Daly
On Sat, Sep 02, 2017 at 03:53:52PM -0400, ivy wrote: Hi there, there are a few things here I'm not sure about. > location / { > try_files $uri $uri/ =404; Why is that line there? That probably says "return 404 to most requests". You report that you get a 404 to most requests. Remove tha