配置文件中添加 NameVirtualHost *:433 保存重启apache…
问题背景: 在apache的httpd.conf里新增加了1个VirtualHost,域名是xxx.com,此时,服务器总共2个VirtualHost ,service httpd restart的时候却出现了下面的警告提示: [warn] _default_ VirtualHost overlap on port 80, the first has precedence 大概意思就是说后面新增加的这个VirtualHost 由于端口被占用,不能生效,沿用第一个虚拟主机的配置. 检查了一下,发现…
http://blog.csdn.net/kaizhu_qin/article/details/17506293 很多第一次配置apache的虚拟主机的时候,以为配置第一个虚拟主机完成以后,以后就不会出现什么问题了.在配置第一个虚拟主机的时候,重启apache的时候,都可能会遇到下面的问题:[warn] _default_ VirtualHost overlap on port 80, the first has precedence是因为第一个虚拟主机配置已经占用了80端口,所以将会沿用第一虚…
去掉#NameVirtualHost *:80,然后重启httpd…
内容提要:复关于apache-xampp的问题:Port 443 in use by “vmware-hostd.exe”!在电脑里装了VMware后,再要装xampp,十有八九就会出现这个问题: 复关于apache-xampp的问题:Port 443 in use by “vmware-hostd.exe”! 在电脑里装了VMware后,再要装xampp,十有八九就会出现这个问题: 10:21:18  [Apache]  Problem detected!10:21:18  [Apache]…
第一个报错: 最近在练习post请求中上传文件时遇到了一个奇葩事情,两台电脑上写了一模一样的代码,一个运行正常,另一个一片红. 最后了解了一下原因以及解决办法.先记录下关键代码: files = {"files":(r"F:\test.txt","xixihaha")} #直接将目标文件内容xixihaha通过文件test.txt进行上传 r = requests.post(url,files=files)print(r.headers) #前边…
1.进入终端命令行 (1)输入:cd .ssh/ 进入到.ssh后,输入ls,会输出“known_hosts”,如果没有创建过rsa的话 (2)输入:man ssh-add (3)输入:ssh-keygen -t rsa -C "your email"   // 你的邮箱 (4)输入:输入私钥名字 Enter file in which to save the key (/Users/lele/.ssh/id_rsa): id_rsa1  // 给生成生成私钥命名 (5)输入:密码 E…
最近项目不忙了~~有开始专研的python大业,上来想用pip安装一个第三方的库,就一直报错: Could not fetch URL https://pypi.org/simple/xrld/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/xrld/ (Cause…
tcpdump -i eth0 -n  -vvv src or dst port 443…
import requests url='https://www.duitang.com/napi/blog/list/by_search/?kw=%E6%A0%A1%E8%8A%B1&start=0&limit=1000.tar.gz' page=requests.get(url) 代码运行后SSLError: HTTPSConnectionPool(host='b-ssl.duitang.com', port=443): Requests 可以为 HTTPS 请求验证 SSL 证书,就…