flyzy博客
分享便宜VPS与网络优惠
搬瓦工

请教caddy代理php写法

最近在尝试驱动此php
https://www.hostloc.com/thread-758077-1-1.html

然后我想到了用caddy+php,简单小巧
但是我云探针 https ip:2096使用正常

https://域名:2096 {
root /usr/local/ServerStatus/web
tls /root/https/域名.crt /root/https/域名.key
timeouts none
gzip
}
https://域名:443 {
root /php/index.php
fastcgi / /run/php/php7.3-fpm.sock php
tls /root/https/域名.crt /root/https/域名.key
gzip
}

是不是我用这php写法不对啊?

php插件

root@serv4:~# php -m
[PHP Modules] calendar
Core
ctype
date
dom
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
Reflection
remctl
session
shmop
SimpleXML
sockets
sodium
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zlib

[Zend Modules] Zend OPcache

root@serv4:~# php -v
PHP 7.3.27-7+0~20210220.80+debian10~1.gbpccb1ab (cli) (built: Feb 20 2021 05:35:24) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.27, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.3.27-7+0~20210220.80+debian10~1.gbpccb1ab, Copyright (c) 1999-2018, by Zend Technologies

请教18cm大婶

浙江省网友说:root不是目录吗?

赞(0) 打赏
关注我们
未经允许不得转载:flyzy博客 » 请教caddy代理php写法
分享到: 更多 (0)

这是一种鼓励

支付宝扫一扫打赏

微信扫一扫打赏