我正在尝试将域'www.test.example.com'重定向到a++
在入口处,我添加了注释
test.example.com
它没有按预期工作。
为了测试,我尝试了这个
nginx.ingress.kubernetes.io/configuration-snippet: |
if ($host = 'www.test.wotnot.io' ) {
rewrite ^/(.*)$ https://app.test.wotnot.io/$1 permanent;
}
工作正常。
我的网站正在使用nginx.ingress.kubernetes.io/configuration-snippet: |
if ($host = 'test.example.com' ) {
rewrite ^/(.*)$ https://google.com/$1 permanent;
}
和ssl证书。
整个入口
test.example.com