Nginx 环境 SSL 强制 HTTP 301 跳转到 HTTPS
今天在给服务器 SSL,配置成功后需要将 HTTP 用 301 跳转至 HTTP,才能统一 HTTPS 入口。 首先需要找到 Nginx 的配置文件: /usr/local/nginx/conf/vhost 这是默认的地址,如果自定义了地址,就按照实际情况进行操作。 ...
今天在给服务器 SSL,配置成功后需要将 HTTP 用 301 跳转至 HTTP,才能统一 HTTPS 入口。 首先需要找到 Nginx 的配置文件: /usr/local/nginx/conf/vhost 这是默认的地址,如果自定义了地址,就按照实际情况进行操作。 ...
工作 这个星期也没干什么,每天都在看公司项目的代码,然后看看框架的文档。刚来公司,认识的人也不多,虽然交流的比较少,但是工作氛围还是很不错的。 生活 付费后浏览 ...
如果是多线程的环境下使用 ServiceStack.Redis,就必须使用连接池,每次从连接池里面获取一个连接供当前线程使用,或者每次都重新实例化一个! ...
Count the number of Duplicates Write a function that will return the count of distinct case-insensitive alphabetic characters and numeric digits that occur more than once in the input string.The input string can be assumed to contain only alphanumeric characters, including digits, uppercase and lowercase alphabets. Example "abcde" -> 0 # no characters repeats more than once "aabbcde" -> 2 # 'a' and 'b' "aabbcdeB" -> 2 # 'a' and 'b' "indivisibility" -> 1 # 'i' "Indivisibilities" -> 2 # 'i' and 's' "aa11" -> 2 # 'a' and '1' 解题思路 函数功能:计算字符串中重复的字符有多少个。我们只要先判断字符是否重复,然后再计算有多少个字符重复。 ...
今天准备采集一个网站,在分析他的数据的接口的时候,发现提交及返回的数据都是经过 js 加密的。然后我就开始把 js 转成 C# 的代码,运行后发现返回的数据不一样,我就在想他是不是 Base64 过的,然后就解开了… ...