server {
listen 80;
server_name qwe.qwe.com;
location / {
root /opt/auss-web/dist/;
index index.html index.htm ;
proxy_pass http://abc.abc.com/hola/;
if ( $host != 'abc.abc.com' ){
rewrite ^/(.*)$ http://abc.abc.com/hola/$1 permanent;
nginx.ingress.kubernetes.io/configuration-snippet: |
if ( $server_name = 'm.abc.com' ) {
# return 301 https://m.qwe.com;
rewrite ^/(.*)$ https://m.qwe.com/$1 permanent;
}