2.
@Curtion,
cron.hu60.cn跳转tool.hu60.cn
tool.hu60.cn绑定cron目录。。
干嘛非要跳二级目录。。直接绑定那个二级目录😂😂
3.
@88西门吹雪99,你理解错我的意思了。我解决了
set $subdomain '';
if ( $host ~* "(?:(\w+\.){0,})(\b(?!www|tool\b)\w+)\.\b(?!(com|org|gov|net|cn)\b)\w+\.[a-zA-Z]+" ) { set $subdomain "/$2"; }
root /home/wwwroot/tool.3gxk.net/web$subdomain;
这样就行了