-
Notifications
You must be signed in to change notification settings - Fork 60.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我怎么设置他成为一个子目录呢?nginx #4928
Comments
Please follow the issue template to update title and description of your issue. |
Title: How do I set it to be a subdirectory? nginx |
Same quesiton here |
@bbhxwl @Interfish
|
another version:
|
This definitely won't work because my main path has other websites and I just want them to be a part of my website |
[emerg] 2408809#2408809: "proxy_pass" cannot have URI part in location given by regular expression, or inside named location, or inside "if" statement, or inside "limit_except" block in |
https://gist.github.com/lloydzhou/1bd2f63a85e5a622716d001a3a9c5a8d the 2 version, work fine |
What I mean is that your root directory cannot be used for reverse proxy of other websites, right? |
Have you solved it already? |
没有用 其他资源跟路径跳转任然 404 |
It’s useless. Other resources and path jumps are still 404. |
我想访问我主站 的/gpt 路径,代理这个地址。
测试了下404,资料加载不了。
location /gpt {
proxy_pass http://127.0.0.1:6003/;
proxy_buffering off;
proxy_read_timeout 100s;
}
The text was updated successfully, but these errors were encountered: