Nginx中proxy_hide_header 与fastcgi_hide_header都可以隐藏主机头信息,两者在具体使用时还是有着一定的区别的。刚好业务使用的nginx反向代理在显示响应头时将后端机器的PHP版本显示了出来,虽说在用户体验和安全上并无大的影响,但是将PHP版本信息暴漏出来总是不妥 ...
分类:
其他好文 时间:
2017-08-04 09:56:11
阅读次数:
277
1.循环:反复执行一段相同或相似的代码(逻辑相似或者相同)2.循环三要素: 1.循环变量的初始化 2.循环的条件(以循环变量为基础) 3.循环变量的改变(向着循环的结束变)循环变量:在整个循环过程中所反复改变的那个数 3.循环结构: 1)while:先判断后执行,有可能一次都不执行 2)do...w ...
分类:
编程语言 时间:
2017-08-03 23:43:34
阅读次数:
222
sorted 数组, 常用二指针遍历, 会倒叙, 会前序 逆序遍历的好处, 1只遍历后面的 2此题在于空间上可以不干扰. ...
分类:
其他好文 时间:
2017-07-31 13:24:39
阅读次数:
134
Install for macOS 10.11 or higher (64 bit) 1 Install pre-requisites In order to use .NET Core, you first need to install the latest version of OpenSSL ...
分类:
Web程序 时间:
2017-07-30 12:53:28
阅读次数:
369
OSPFv2中,提到点到点链路可以是unnumbered,不编号,不分配IP地址 12.4.1.1. Describing point-to-point interfaces For point-to-point interfaces, one or more link descriptions a ...
分类:
其他好文 时间:
2017-07-29 23:19:56
阅读次数:
422
2017-07-29 16:58:13 一、简介 1、Set概念 Set可以理解为集合,非常类似数据概念中的集合,集合三大特征:1、确定性;2、互异性;3、无序性,因此Set实现类也有类似的特征。 2、HashSet HashSet继承自AbstractSet,实现了Set接口,但是其源码非常少,也 ...
分类:
编程语言 时间:
2017-07-29 18:54:20
阅读次数:
299
Writing I/O- and CPU-bound asynchronous code is straightforward using the .NET Task-based async model. The model is exposed by the Task and Task<T> ty ...
分类:
其他好文 时间:
2017-07-29 15:16:30
阅读次数:
196
Given four numbers, can you get twenty-four through the addition, subtraction, multiplication, and division? Each number can be used only once. Input ...
分类:
其他好文 时间:
2017-07-28 20:56:16
阅读次数:
120
// // ViewController.swift // NavigationController // import UIKit import Foundation class ViewController: UIViewController,FontSizeChangDelegate { va ...
分类:
编程语言 时间:
2017-07-28 14:07:41
阅读次数:
172
一,效果图。 二,工程图。 三,代码。 ViewController.h ViewController.m ...
分类:
移动开发 时间:
2017-07-27 10:43:12
阅读次数:
232