- create a new redis .conf file
$ cp /etc/redis.conf /etc/redis-xxx.conf- edit /etc/redis-xxx.conf, illustrated as below
...| server { | |
| listen 80; | |
| server_name your.domain.com; | |
| location = /analytics.js { | |
| # you have to compile nginx with http://nginx.org/en/docs/http/ngx_http_sub_module.html (this is not default) | |
| # and http://nginx.org/en/docs/http/ngx_http_proxy_module.html (it's a default module) | |
| proxy_set_header Accept-Encoding ""; |
| # Start Bad Bot Prevention | |
| <IfModule mod_setenvif.c> | |
| # SetEnvIfNoCase User-Agent ^$ bad_bot | |
| SetEnvIfNoCase User-Agent "^12soso.*" bad_bot | |
| SetEnvIfNoCase User-Agent "^192.comAgent.*" bad_bot | |
| SetEnvIfNoCase User-Agent "^1Noonbot.*" bad_bot | |
| SetEnvIfNoCase User-Agent "^1on1searchBot.*" bad_bot | |
| SetEnvIfNoCase User-Agent "^3D_SEARCH.*" bad_bot | |
| SetEnvIfNoCase User-Agent "^3DE_SEARCH2.*" bad_bot | |
| SetEnvIfNoCase User-Agent "^3GSE.*" bad_bot |
| <h1>Testing display of HTML elements</h1> | |
| <h2>This is 2nd level heading</h2> | |
| <p>This is a test paragraph.</p> | |
| <h3>This is 3rd level heading</h3> | |
| <p>This is a test paragraph.</p> | |
| <h4>This is 4th level heading</h4> | |
| <p>This is a test paragraph.</p> | |
| <h5>This is 5th level heading</h5> | |
| <p>This is a test paragraph.</p> |
| diff --git a/magento/app/code/core/Mage/SalesRule/Model/Rule/Condition/Product/Subselect.php b/magento/app/code/core/Mage/SalesRule/Model/Rule/Condition/Product/Subselect.php | |
| index c07e179..e3ba1e6 100644 | |
| --- a/magento/app/code/core/Mage/SalesRule/Model/Rule/Condition/Product/Subselect.php | |
| +++ b/magento/app/code/core/Mage/SalesRule/Model/Rule/Condition/Product/Subselect.php | |
| @@ -111,6 +111,12 @@ | |
| // $aggregatorArr = explode('/', $this->getAggregator()); | |
| // $this->setValue((int)$aggregatorArr[0])->setAggregator($aggregatorArr[1]); | |
| + // The parent class is passing children of configurable items to this method again | |
| + // this is causing an infinite recursion if we let it pass |
| function getIP(host) { | |
| var url = "https://freegeoip.net/json/" + host; | |
| var json = UrlFetchApp.fetch(url); | |
| var data = JSON.parse(json); | |
| return data["ip"]; | |
| } |
| #!/bin/bash | |
| # Patch apllying tool template | |
| # v0.1.2 | |
| # (c) Copyright 2013. Magento Inc. | |
| # | |
| # DO NOT CHANGE ANY LINE IN THIS FILE. | |
| # 1. Check required system tools | |
| _check_installed_tools() { | |
| local missed="" |
| # robots.txt for Magento 1.9.x & 2.x / v1.7 2023-01-30 / [email protected] | |
| # - original version from 2015 for 1.9.x, but these rules are OK for M2 as well | |
| # - edited in 2017 to add filter query parameter disallow samples + some wildcards | |
| # - edited in 2018 to add query params blocking to Yandex as named User-agent does not read * | |
| # - edited in 2023 to remove unneeded stuff (license.txt, crawl-delay) and make all rules use */ prefix | |
| # based on: | |
| # https://inchoo.net/ecommerce/ultimate-magento-robots-txt-file-examples/ | |
| # https://www.hypernode.com/nl/blog/magento-robots-txt/ | |
| # https://astrio.net/blog/optimize-robots-txt-for-magento/ | |
| # |
| ## | |
| # @package Joomla | |
| # @copyright Copyright (C) 2005 - 2018 Open Source Matters. All rights reserved. | |
| # @license GNU General Public License version 2 or later; see LICENSE.txt | |
| ## | |
| ## | |
| # READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE! | |
| # | |
| # The line 'Options +FollowSymLinks' may cause problems with some server configurations. |
$ cp /etc/redis.conf /etc/redis-xxx.conf...| <?php | |
| /** | |
| * | |
| * Copyright (c) 2013 Studio Boz | |
| * | |
| * @project_name Studio Boz | |
| * @copyright Copyright (c) 2013 Studio Boz (http://studioboz.com.br) | |
| * @author Rick Benetti <[email protected]> | |
| * | |
| **/ |