Welcome! Log In Create A New Profile

Advanced

Re: merely testing for $ssl_protocol breaks upstream proxy only with IE8

Francis Daly
October 06, 2015 03:36AM
On Mon, Oct 05, 2015 at 06:33:40PM -0400, rpriyana wrote:

Hi there,

> location / {
> set $unsafe 0;
> if ($ssl_protocol = TLSv1) {
> set $unsafe 1;
> }
> proxy_intercept_errors on;
> proxy_read_timeout 90;
> try_files $uri $uri/index.html @proxy;
> root /var/nginx/www/bb2;
>
> }

https://www.nginx.com/resources/wiki/start/topics/depth/ifisevil/

You have "if" inside "location".

You seem to have the configuration that is in the section

# try_files wont work due to if

> When I try to access anything that is statically served, it is fine, but
> when I access anything proxied, I get a 404 on IE8 WinXP and some Win7,
> Other browsers are fine.

I suspect that "other browsers" is the difference between "if true" and
"if false".

Either way: it won't reliably do what you expect.

If you need $unsafe, set it outside of a location.

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

merely testing for $ssl_protocol breaks upstream proxy only with IE8

rpriyana October 05, 2015 06:33PM

Re: merely testing for $ssl_protocol breaks upstream proxy only with IE8

Francis Daly October 06, 2015 03:36AM

Re: merely testing for $ssl_protocol breaks upstream proxy only with IE8

B.R. October 06, 2015 10:10AM

Re: merely testing for $ssl_protocol breaks upstream proxy only with IE8

rpriyana October 06, 2015 07:33PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 207
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready