随笔分类 -  Apache

摘要:import os import numpy as np import pandas as pd import string, random def random_string(n: int): return ''.join(random.choices(string.ascii_letters, 阅读全文
posted @ 2022-09-23 06:22 ascertain 阅读(78) 评论(0) 推荐(0) 编辑
摘要:https://downloads.apache.org/directory/KEYS 阅读全文
posted @ 2022-05-21 21:39 ascertain 阅读(23) 评论(0) 推荐(0) 编辑
摘要:httpd 2.4.9 + mysql-5.5.33 + php-5.4.26编译安装过程: 一、编译安装apache 1、解决依赖关系 httpd-2.4.9需要较新版本的apr和apr-util,因此需要事先对其进行升级。升级方式有两种,一种是通过源代码编译安装,一种是直接升级rpm包。这里选择 阅读全文
posted @ 2020-11-29 12:57 ascertain 阅读(295) 评论(0) 推荐(0) 编辑
摘要:CentOS 7 源码安装 PHP 7.4 正式版教程 1、准备编译环境 yum -y install epel-release yum-utils yum config-manager --set-enabled PowerTools yum -y install gcc gcc-c++ make 阅读全文
posted @ 2020-10-15 20:55 ascertain 阅读(299) 评论(0) 推荐(0) 编辑
摘要:生产中配了一台Ocr服务器,用于图片识别,tomcat默认没有maxPostSize参数,但是其有上传文件大小限制,图片大小超过2M报错,收到大量500错误 在conf/server.xml => Connector中更改参数 maxPostSize="-1" disableUploadTimeou 阅读全文
posted @ 2020-08-26 19:40 ascertain 阅读(1872) 评论(0) 推荐(0) 编辑
摘要:HTTP协议常用标准状态码含义 状态码含义备注 200 请求已完成 2XX状态码均为正常状态码返回。 300 多种选择 服务器根据请求可执行多种操作。服务器可根据请求者(User agent)来选择一项操作,或提供操作列表供请求者选择。 301 永久移动 请求的网页已被永久移动到新位置。服务器返回此 阅读全文
posted @ 2020-08-11 18:18 ascertain 阅读(324) 评论(0) 推荐(0) 编辑
摘要:proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host; proxy_pass http://i 阅读全文
posted @ 2020-07-18 17:05 ascertain 阅读(2433) 评论(0) 推荐(0) 编辑
摘要:安装: yum install pcre-devel openssl-devel apr ./configure --prefix=/usr/local/apr make && make install apr-util ./configure --prefix=/usr/local/apr-uti 阅读全文
posted @ 2020-07-18 16:41 ascertain 阅读(216) 评论(0) 推荐(0) 编辑
摘要:ssl.conf Listen 443 //可以改成其他端口SSLPassPhraseDialog builtin //每次重启Apache时需要输入密码SSLSessionCache shmcb:/var/cache/mod_ssl/scache(512000)SSLSessionCacheTim 阅读全文
posted @ 2020-06-23 00:04 ascertain 阅读(420) 评论(0) 推荐(0) 编辑
摘要:SSL证书,用于加密HTTP协议,也就是HTTPS。随着淘宝、百度等网站纷纷实现全站Https加密访问,搜索引擎对于Https更加友好,加上互联网上越来越多的人重视隐私安全,站长们给网站添加SSL证书似乎成为了一种趋势。 给自己的网站添加SSL证书其实并不复杂,但是关键一点就是首先要拥有一个SSL证 阅读全文
posted @ 2020-06-11 09:25 ascertain 阅读(682) 评论(0) 推荐(0) 编辑
摘要:在httpd.conf中加入下面两项directive ServerSignature Off ServerTokens Prod 下面是ServerTokens的可能取值 ServerTokens Prod echo "Server:Apache" ServerTokens Major echo 阅读全文
posted @ 2020-06-11 09:20 ascertain 阅读(389) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示