Welcome! Log In Create A New Profile

Advanced

Re: if set variable unfamiliar language

December 17, 2009 05:16AM
On Thu, Dec 17, 2009 at 5:05 PM, nerdgrind <nginx-forum@nginx.us> wrote:
> I've seen code for virtual domains in the nginx.conf to handle setups with WP Super Cache using an if condition that appears to assign a variable value with "set" as shown in the example below.
>
> Could someone provide me with a link, or links, where I can see some examples of how this is used, how to use set, and what language it is from, so I can write some of my own configurations using this approach?
>
>
> # if the requested file exists, return it immediately
>               if (-f $request_filename) {
>                       break;
>               }
>
>               set $supercache_file '';
>               set $supercache_uri $request_uri;
>
>               if ($request_method = POST) {
>                       set $supercache_uri '';
>               }
>
> # Using pretty permalinks, so bypass the cache for any query string
>               if ($query_string) {
>                       set $supercache_uri '';
>               }
>
>               if ($http_cookie ~* "comment_author_|wordpress|wp-postpass_" ) {
>                       set $supercache_uri '';
>               }
>
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,31203,31203#msg-31203
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>

wiki.nginx.org

--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

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

if set variable unfamiliar language

nerdgrind December 17, 2009 05:05AM

Re: if set variable unfamiliar language

edogawaconan December 17, 2009 05:16AM

Re: if set variable unfamiliar language

nerdgrind December 17, 2009 05:48AM

Re: if set variable unfamiliar language

nerdgrind December 17, 2009 01:03PM

Re: if set variable unfamiliar language

edogawaconan December 17, 2009 11:52AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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