I. Configuration of anti-theft chains
Implementing the function of anti-theft chain by restricting referer
Add the following to the configuration file
SetEnvIfNoCase Referer "http://111.com" local_ref
SetEnvIfNoCase Referer "http://aaa.com" local_ref
Posted on Mon, 24 Dec 2018 17:15:06 -0800 by sirTemplar
1014: [JSOI2008] Mars prefix
Time Limit: 10 Sec Memory Limit: 162 MBSubmit: 7588 Solved: 2429
Martians recentl y studied an operation: finding a common prefix for a string with two suffixes. For example, there is a string: m a d a m i m a d a m, we label each character of the string: ordinal number: ...
Posted on Mon, 24 Dec 2018 01:12:06 -0800 by s.eardley
Haproxy+Keepalived+Varnish+LAMP+Memcacked+NFS for Dynamic and Static Separation of web Sites
(1) Architectural Topology Map Display
(2) Brief description of the architecture
The source code of this dynamic and static separation uses WordPress open source program, WordPress program itself can achieve complete separation of the f ...
Posted on Sun, 23 Dec 2018 22:54:06 -0800 by DLR
curl official download page
Installed the latest version of PHP 7, or encountered BUG. This is curl's problem. The curl version installed by default in CentOS 7 is too low and needs to be upgraded to the latest version to solve this problem.
1. Problem Description
An interface is docked to download PDF files. After downloadi ...
Posted on Sun, 23 Dec 2018 10:15:06 -0800 by php_joe
Download the Yii2 installation package to Liunx and find that it is accessible with localhost/basic/web
But if you use www.basic.com, you won't be able to access it. The page will prompt 500, as follows
www.basic.com is currently unable to handle this request
Then Stack Overflow looked up and found that just modify php.ini (save the sourc ...
Posted on Sat, 22 Dec 2018 09:51:05 -0800 by tigomark
pool of php-fpm
php-fpm.conf can set up multiple pools, in which one pool resource is exhausted, which will cause other sites to be unable to access resources and report 502 errors. It is necessary to separate the sites and use separate pools.
View the current pool
1. Adding pool means ...
Posted on Fri, 21 Dec 2018 01:39:05 -0800 by m00p4h
Nginx characteristicsNginx has the advantages of stable performance, rich functions, simple operation and maintenance, fast processing of static files and little system resource consumption.1. Compared with Apache, Nginx serves as a Web server: it uses fewer resources, supports more concurrent connections and is more efficient.2. As a load bala ...
Posted on Thu, 20 Dec 2018 22:03:06 -0800 by russian_god
21.1 Introduction to NoSQL
Non-relational database is NoSQL. Relational database represents MySQL. For relational database, it is necessary to store data into database, table, row and field. When querying, it matches one line by one according to the condition. When the quantity is very large, it takes time and resources, espe ...
Posted on Thu, 20 Dec 2018 06:48:05 -0800 by jinky32
Docker implements encapsulation of software into a complete file system based on LXC. It can run all the code, running environment, system tools and system libraries required in the docker container. Because docker uses a host-independent file system, it can ensure that the software still runs in different host environments. Doker shares an op ...
Posted on Wed, 19 Dec 2018 19:33:05 -0800 by spramod
NanoPi K2 (Amlogic S905) Ubuntu 16.04 Compiles Android 5.1 System Source Code
1. Download source code
Download here https://www.mediafire.com/folder/8xn2iirciznqh/S905#dtzqzeqaf8114 Compress packages, or download them using repo. according to http://wiki.friendlyarm.com/wiki/index.php/NanoPi_K2/zh#.E7.BC.96.E8.AF.91Android Download here.
Posted on Wed, 19 Dec 2018 18:42:05 -0800 by SUNNY ARSLAN