Configure nginx a reverse proxy https for IIS backend

2020-04-06 Thread Johan Gabriel Medina Capois
Hello everyone We are noob on nginx and we are trying to configure a site that is in Windows IIS, we could configure the site with http:// but with https:// we can't IIS Backend server 10.228.20.113 application running on port 80 and 443 Nginx reverse proxy 10.228.20.99 Version 1.17.9 on ubuntu

Re: auth_request with vhost conf files

2020-04-06 Thread lsces
Working ... the live .conf file had an extra block controlling the image caching which overrides the auth block ... easy when you know how ... The question now is do I have the right setup for proxy_pass do need the resolver 8.8.8.8; proxy_pass https://indiastudycircle.org/auth/auth.php?content

Re: Nginx proxy cache doesn't update cache-control max-age time!

2020-04-06 Thread J.R.
> The Age header is the HTTP/1.1 way to decrement effective value of > max-age, see here: > > https://tools.ietf.org/html/rfc7234#section-4.2.3 Interesting... Well, I solved the issue by simply removing the 'max-age' portion from the 'cache-control' header, keeping the other portion. Expiration i

auth_request with vhost conf files

2020-04-06 Thread lsces
After a few false starts I've got auth_request passing parameters to php-fpm and my firebird database is allowing control of access to files in the storage filing system. Somewhat defeats the "This is cool because no php is touched for static content" and I have had to produce a slimline version of

Re: Nginx proxy cache doesn't update cache-control max-age time!

2020-04-06 Thread Maxim Dounin
Hello! On Mon, Apr 06, 2020 at 12:25:44PM -0500, J.R. wrote: > > There is no Age header support in nginx as of now (relevant ticket > > in Trac: https://trac.nginx.org/nginx/ticket/146). If you want > > pages to expire at a specific time regardless of intermediate > > caching, consider using the

Re: Nginx proxy cache doesn't update cache-control max-age time!

2020-04-06 Thread J.R.
> There is no Age header support in nginx as of now (relevant ticket > in Trac: https://trac.nginx.org/nginx/ticket/146). If you want > pages to expire at a specific time regardless of intermediate > caching, consider using the "Expires" header. The 'age' header appears to be something else... Wh

Re: Nginx proxy cache doesn't update cache-control max-age time!

2020-04-06 Thread Maxim Dounin
Hello! On Mon, Apr 06, 2020 at 10:26:04AM -0500, J.R. wrote: > This was driving me crazy and I think I've figured out the problem. > > I started using the proxy cache (which is great, saves regenerating a > lot of dynamic pages), except a bunch of my pages expire at a very > specific time, at th

Re: Confused between proxy_socket_keepalive & (upstream) keepalive?

2020-04-06 Thread Maxim Dounin
Hello! On Mon, Apr 06, 2020 at 09:55:44AM -0500, J.R. wrote: > For my setup I use the 'upstream' directive, and in that module there > is the 'keepalive' syntax: > > https://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive > > I just noticed today in the proxy module there is the

Nginx proxy cache doesn't update cache-control max-age time!

2020-04-06 Thread J.R.
This was driving me crazy and I think I've figured out the problem. I started using the proxy cache (which is great, saves regenerating a lot of dynamic pages), except a bunch of my pages expire at a very specific time, at the start of the hour, and my cache-control / expires headers reflect that,

Confused between proxy_socket_keepalive & (upstream) keepalive?

2020-04-06 Thread J.R.
For my setup I use the 'upstream' directive, and in that module there is the 'keepalive' syntax: https://nginx.org/en/docs/http/ngx_http_upstream_module.html#keepalive I just noticed today in the proxy module there is the 'proxy_socket_keepalive' syntax: http://nginx.org/en/docs/http/ngx_http_pr