首页 > 编程知识 正文

nginx是转发还是重定向,nginx重定向post请求

时间:2023-05-06 20:42:17 阅读:166980 作者:754

背景通过k8s访问http://192.168.1.2:32156/devops/index.html需跳转到http://192.168.1.2:32156/jenkins/

配置文件location=/devo PS/index.html { rewrite ^ $ scheme 3360//$ http _ host/Jenkins/permanent; } location=/Jenkins/{ root/usr/share/nginx/html; index /jenkins/index.html; }相关说明location=/devops/index.html#精确匹配/devops/index.html$scheme#包含客户端请求的地址,例如http$http_host#

Nginx下Rewrite的重定向配置与实践

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。