caddy搭建静态+PHP+伪静态Web服务器
feieryun-v2.hk2.anan.cc {handle_path /AdminLTE/* {root C:\data\service\caddy\www\AdminLTEfile_serverencode}handle_path /static/* {root C:\data\service\caddy\www\v2.feieryun.cn\wwwroot\staticfile_serverencode}handle_path /* {@phpFiles {path */path *.php}root @phpFiles C:\data\service\caddy\www\v2.feieryun.cn\sitebase\firadiophp_fastcgi @phpFiles 127.0.0.1:9000 {try_files {path} {path}/index.php =404}}handle_path /* {root C:\data\service\caddy\www\v2.feieryun.cn\sitebase\firadiophp_fastcgi 127.0.0.1:9000@notExist not filerewrite @notExist /index.php/{path}}handle_path /* {root C:\data\service\caddy\www\v2.feieryun.cn\sitebase\firadiofile_serverencode}
}
本文来自博客园,作者:项希盛,转载请注明原文链接:https://www.cnblogs.com/xiangxisheng/p/19128096