11.28-31 Restricts a directory from parsing php, user_agent, php-related configuration

Access Control - Prohibit php parsing. note prohibits parsing PHP under a directory, which is very useful. When we do website security, this is used a lot. For example, some directories can upload files. In order to avoid the Trojan horse of uploaded files, we prohibit access under this directory to parse PHP. 1. Disable parsing PHP first < ...

Posted on Wed, 19 Dec 2018 03:57:04 -0800 by mohson

Avoid Crash integration and simple encapsulation unrecognized selector send to instance crash interception

Some problems about inconsistency between backend return data type and interface document type When a project is mature enough, crash problems rarely arise. Basically, most of the crashes occur in inconsistent data types when docking background data, as well as the problems of array crossover and dictionary null assignment. I' ...

Posted on Tue, 18 Dec 2018 15:06:04 -0800 by utpal

bzoj2253 [2010 Beijing wc] carton stack (CDQ+dp)

Description Factory P is a factory that produces cartons. After manually inputting three parameters n p a, the carton production line can automatically produce three side lengths as follows (a mod P,a^2 mod p,a^3 mod P) (a^4 mod p,a^5 mod p,a^6 mod P) …. (a^(3n-2) mod p,a^(3n-1) mod p,a^(3n) mod p) n cartons. In order to save space, these ...

Posted on Mon, 17 Dec 2018 00:03:04 -0800 by edg322

Detailed steps for centos to build Nginx+PHP+MySql+Redis environment (CentOS7 environment)

[ First of all, support Ali Yun! Aliyun ECS server, lucky ticket. Welcome to collect:               https://promotion.aliyun.com/ntms/act/ambassador/sharetouser.html?userCode=5uqvqirt&productCode=vm&utm_source=5uqvqirt ] I. Installation of Nginx 1. Download the nginx-release package wget http://nginx.org/pack ...

Posted on Sun, 16 Dec 2018 00:24:04 -0800 by wertz33

js Baidu Map Control API Geolocation Control to locate _bmap api according to search keywords

//Create map objects and initialize them. var mp = new BMap.Map("map_container",{     enableHighResolution: true //Whether to turn on HD? });     var point = new BMap.Point(116.404, 39.915);     mp.centerAndZoom(point, 14); //Initialize maps mp.enableInertialDragging(); //Open the relationship drag. mp.enableScrollWheel ...

Posted on Sat, 15 Dec 2018 14:39:04 -0800 by installer69

bzoj 4842: [Neerc2016]Delight for a Cat (Cost Flow)

Title Description Portal Title Solution It seems that this question provides a good idea of composition. Essentially, it should be a minimum cost maximum flow with upper and lower bounds, but we can directly run the minimum cost maximum flow to achieve the effect of upper and lower bounds through some edge restrictions. Assuming that you ...

Posted on Sat, 15 Dec 2018 10:09:04 -0800 by rgpayne

LNMP Architecture (Introduction to LNMP Architecture, mysql Installation, PHP Installation, Nginx Introduction)

Introduction to LNMP Architecture L(Linux) N(Nginx) M(Mysql) P(PHP) Similar to the general principle of LAMP architecture, one difference is that in LNMP architecture, PHP will start a service: php-fpm, whereas in LAMP, PHP only exists as a module of Apache. Nginx handles users'dynamic requests to the PHP service, which interacts with the d ...

Posted on Sat, 15 Dec 2018 03:48:03 -0800 by munsiem

(5) RabbitMQ message queue - install amqp extension and subscribe/publish Demo (PHP version)

This article describes how to use RabbitMQ to subscribe and publish messages in PHP. The system I use is still Centos7. For convenience, I use Docker to deploy the application server. Container environment: centos7+nginx+php5.6. Running environment, install AMQP extension: I won't say how to install Docker. Many online tutori ...

Posted on Fri, 14 Dec 2018 08:03:03 -0800 by jb489

Creation of docker Apche+PHP+MariaDB+phpMyAdmin

We talked about the creation of MariaDB. This time, we build phpMyAdmin service on the basis of the above, so that we can manage MariaDB database friendly. MariaDB's docker is independent, which is easy to manage and expand. This time we created the remaining services based on the Dockerfile approach, which is also officially recom ...

Posted on Fri, 14 Dec 2018 04:36:03 -0800 by visualAd

Nginx load balancing, ssl principle, php-fpm, open_basedir

Nginx load balancing Vim/usr/local/nginx/conf/vhost/load.conf// upstream qq_com { ip_hash; server 61.135.157.156:80; server 125.39.240.113:80; } server { listen 80; server_name www.qq.com; location / { proxy_pass http://qq_com; proxy_set_header Host $host; proxy_set_header X-Real-IP ...

Posted on Fri, 14 Dec 2018 03:36:08 -0800 by the DtTvB