Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用清漆,如何重定向域根目录(例如http://mydomain.com/),但为其他所有内容设置后端?(例如http://mydomain.com/everythingelse)
您可以在 vcl_recv 中使用下一个 URL 匹配:
if (req.url == "/") { #redirect actions } else { set req.backend = somebackendname; }