一、配置跳转
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: app
annotations:
nginx.ingress.kubernetes.io/configuration-snippet: |
rewrite / https://t.example.com$uri permanent;
kubernetes.io/ingress.class: "nginx"
cert-manager.io/cluster-issuer: "letsencrypt-prod"
spec:
tls:
- hosts:
- t1.example.com
secretName: app
rules:
- host: t1.example.com
http:
paths:
- path: /
backend:
serviceName: app
servicePort: 80
- t1.example.com/test?aa=aa --->>> t.example.com/test?aa=aa
二、相关参数
相关全局变量
- $args
- $content_length
- $content_type
- $document_root
- $document_uri
- $host
- $http_user_agent
- $http_cookie
- $limit_rate
- $request_body_file
- $request_method
- $remote_addr
- $remote_port
- $remote_user
- $request_filename
- $request_uri
- $query_string
- $scheme
- $server_protocol
- $server_addr
- $server_name
- $server_port
- $uri
感谢您的阅读!如果文章中有任何错误,或者您有更好的理解和建议,欢迎和我联系!