1. The problem I’m having(我遇到的问题):
(我想要用caddy2配置PHP服务 运行该项目:)
I want to configure a PHP service with caddy2 to run the project:
简单tracker服务器[PHP]:https://github.com/Simple-Tracker/SimpleTracker
2. Error messages and/or full log output(错误消息和/或完整日志输出):
2023/11/30 12:14:56.302 e[34mINFOe[0m using provided configuration {"config_file": "Caddyfile", "config_adapter": ""}
2023/11/30 12:14:56.331 e[34mINFOe[0m admin admin endpoint started {"address": "localhost:2019", "enforce_origin": false, "origins": ["//localhost:2019", "//[::1]:2019", "//127.0.0.1:2019"]}
2023/11/30 12:14:56.331 e[34mINFOe[0m tls.cache.maintenance started background certificate maintenance {"cache": "0xc0001ed080"}
2023/11/30 12:14:56.332 e[34mINFOe[0m tls cleaning storage unit {"description": "FileStorage:C:\\Users\\Administrator\\AppData\\Roaming\\Caddy"}
2023/11/30 12:14:56.332 e[34mINFOe[0m http.log server running {"name": "srv0", "protocols": ["h1", "h2", "h3"]}
2023/11/30 12:14:56.338 e[34mINFOe[0m tls finished cleaning storage units
2023/11/30 12:14:56.341 e[34mINFOe[0m autosaved config (load with --resume flag) {"file": "C:\\Users\\Administrator\\AppData\\Roaming\\Caddy\\autosave.json"}
2023/11/30 12:14:56.341 e[34mINFOe[0m serving initial configuration
3. Caddy version(版本号):
caddy version
v2.7.5 h1:HoysvZkLcN2xJExEepaFHK92Qgs7xAiCFydN5x5Hs6Q=
4. How I installed and ran Caddy(我如何安装和运行 Caddy):
我从官网下载的caddy_2.7.5_windows_amd64.zip……
因为是win10解压出来的exe改名caddy.exe直接就开始测试运行了
cd /d E:\caddy & caddy run --config Caddyfile
a. System environment(a. 系统环境):
windows10专业版
b. Command(命令):
cd /d E:\caddy & caddy run --config Caddyfile
c. Service/unit/compose file(c. 服务/单位/撰写文件):
(Sorry for this item I don’t know how to fill it out)
d. My complete Caddy config(我的Caddyfile配置):
我已经使用过caddy fmt --overwrite命令来调整Caddyfile文件了
:2019 {
root "E:\caddy\SimpleTracker"
php_fastcgi localhost:9000
reverse_proxy localhost:8080
file_server
#encode gzip
}
5. Links to relevant resources(相关资源链接):
对不起 这一项 我不知道如何填写(Sorry for this item I don’t know how to fill it out)