%PDF- %PDF-
Direktori : /etc/nginx/bx/conf/ |
Current File : //etc/nginx/bx/conf/bitrix.conf.ori.202003020544 |
# cache condition variable set $usecache ""; if ($is_global_cache = 1) { set $usecache "${usecache}A"; } # main config without processing cache pages include bx/conf/bitrix_general.conf; # php file processing location ~ \.php$ { set $cache_file "bitrix/html_pages$general_key@$args.html"; # test file conditions if (-f "$docroot/bitrix/html_pages/.enabled") { set $usecache "${usecache}B"; } if (-f "$docroot/$cache_file") { set $usecache "${usecache}C"; } # create rewrite if cache-file exists if ($usecache = "ABC" ) { rewrite .* /$cache_file last; } proxy_pass $proxyserver; } # directories page processing location ~ /$ { set $cache_file "bitrix/html_pages$general_key/index@$args.html"; # test file conditions if (-f "$docroot/bitrix/html_pages/.enabled") { set $usecache "${usecache}B"; } if (-f "$docroot/$cache_file") { set $usecache "${usecache}C"; } # create rewrite if cache-file exists if ($usecache = "ABC" ) { rewrite .* /$cache_file last; } proxy_pass $proxyserver; } # Main location location / { proxy_pass $proxyserver; }