ingress-nginx配置多host指向相同后端
2023-09-11 14:17:16 时间
有时我们的需求是多个域名指向同个后端服务,那ingress-nginx该怎么配置,很简单如下:
spec: rules: - host: foobar.com http: &http_rules paths: - backend: serviceName: foobar servicePort: 80 - host: api.foobar.com http: *http_rules - host: admin.foobar.com http: *http_rules - host: status.foobar.com http: *http_rules
相关文章
- CI框架在 nginx 服务器上配置 rewrite 去掉 index.php 的方法:
- 动态修改php的配置项
- nginx配置80端口访问8080+项目名地址
- Nginx配置参数中文详细说明
- nginx简介和配置gd
- linux-centos7- vim配置
- nginx配置ssl加密(单/双向认证、部分https)
- Nginx配置文件(nginx.conf)配置详解
- nginx优化: timeout超时配置
- nginx安全:配置allow/deny控制ip访问(ngx_http_access_module)
- nginx之配置proxy_set_header问题梳理
- nginx https配置
- nginx负载均衡配置
- nginx服务器配置
- 玩转华为数据中心交换机系列 | 配置LACP模式的跨设备聚合(单机)
- Kubernetes集群Pod资源容器健康检查探针配置(十二)
- Django:Python3.6.2+Django2.0配置MySQL 转载
- 【nginx】配置Nginx实现负载均衡
- ssh配置互信时错误解决方法
- Nginx之http自动跳转https及根路径重定向配置
- Nginx 配置实例-反向代理案例一
- Nginx 配置 proxy_pass