请问如何在 1Panel OpenResty 反向代理中在部分路径返回静态文件? #8593
Unanswered
chlorine3545
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
如题。情景是我开启了一个反向代理,代理了 127.0.0.1:port。但是我希望 domain.tld/path/xxx 返回一个预设的静态文件。在 OpenResty 的 config 文件中添加以下配置返回 404:
各种变体(加入 =、^~、放在 root.conf 文件、使用单独的文件名而不是路径名、alias 改为 root 等)都尝试过了,全部 404。错误日志为:
failed (2: No such file or directory)
,但这个路径和文件都是存在的。Beta Was this translation helpful? Give feedback.
All reactions