Welcome! Log In Create A New Profile

Advanced

Re: Issue with proxy_cache_key after rewrite

December 24, 2010 08:44PM
Hi,

On 25/12/2010 03:29, Piotr Sikora wrote:
>> So i've added the following:
>> proxy_cache_key "$scheme$host$request_uri";
>
> Try using "$scheme$host$uri$is_args$args" ;)
Probably putting '://' or something else that won't be the first
character of a URL (e.g. '#') between $scheme and $host is a good idea,
just in case you have two hosts that only differ by an initial 's' -

e.g. mysite.com and smysite.com

https + mysite.com = http + smysite.com

In most situations this will be fine, but depending on the setup, it
could potentially be a source of bugs or a security hole.

Marcus.

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

Issue with proxy_cache_key after rewrite

Sven 'Darkman' Michels December 24, 2010 06:02PM

Re: Issue with proxy_cache_key after rewrite

Piotr Sikora December 24, 2010 08:34PM

Re: Issue with proxy_cache_key after rewrite

Eugaia December 24, 2010 08:44PM

Re: Issue with proxy_cache_key after rewrite

Maxim Dounin December 24, 2010 10:52PM

Re: Issue with proxy_cache_key after rewrite

Sven 'Darkman' Michels December 25, 2010 08:46AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 182
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