分类: 学习

193 篇文章

Caddy安装默认配置
# The Caddyfile is an easy way to configure your Caddy web server. # # Unless the file starts with a global options block, the first # uncommented line is always the address o…
Caddy文件备份
#proxy.xyz.blue { # tls /etc/caddy/tls/xyz.blue/fullchain.pem /etc/caddy/tls/xyz.blue/privkey.pem # header { # Strict-Transport-Security "max-age=63072000; includeSubDoma…
Caddy2如何为Typecho设置伪静态
答案是无需设置!!!Caddy2 已经内置了关于index.php的伪静态!That’s right, Caddy v2’s php_fastcgi directive is a shortcut that includes a try_files rewrite as you can see in the expanded formCaddy社区…
thumbnail
在linux中设置优先使用ipv4,而不是ipv6
经试验在debian Centos ArchLinux Manjaro中有效修改/etc/gai.conf取消下面这一行的注释precedence ::ffff:0:0/96 100添加如下内容label ::1/128 0 label ::/0 1 label 2002::/16 2 label ::/96 3 label ::ffff:0:0/…
thumbnail
Caddy配置升级1 to 2
proxyThe v2 equivalent is reverse_proxy.Notable subdirective changes are header_upstream and header_downstreamhave become header_up and header_down, respectively; andload-bala…
thumbnail
申请QID方式
设置-账号里面可以申请若果没有,则打开这个链接即可
安装psutil时提示缺少python.h头文件(作记录)
yum -y install python-devel[collapse status="false" title="引用"]通过pip或者源码安装psutil,都会提示缺少python.h头文件,错误提示如下:psutil/_psutil_common.c:9:20: fatal error: Python.h: No such file or …