如何解决反向代理到子路径
所以我设置了一些位于反向代理后面的应用程序。
公共服务器---->私有服务器的端口
这是我的 nginx 配置的样子:
// The list of characters to escape
const htmlEscapes = {
'&': '&','<': '<','>': '>','"': '"',"'": ''','/': '/'
};
// Sample string with an apostrophe character entity in it
let str = 'that's';
// Loop over the entities to escape and regex them out
Object
.entries(htmlEscapes)
.forEach(([plain,hexCode]) => str = str.replace(new RegExp(hexCode,'g'),plain));
// String is now sanitized
console.log(str);
现在我想要的是任何访问dashboard.something.com的人都会被自动重定向到http://dashboard.something.com/#/overview/namespace/development/workloads/deployments
^ 在 http://PRIVATESERVER:7777 上的同一应用程序下运行
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。