Hi All,
The following is the information in the Nginx config file but the redirect to the link for example the link:
https://test.carexs.com/medication-care/view-online-verification-request/1234/1234 does not happen to redirect to the test carexs login page OR even when an invalid link : https://test.carexs.com/hdhghfj , the response kicks in by the docker instead of the .html page.
Kindly help us to understand in case anything is missing.
server {
listen 80;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
### Gzip Settings
gzip on;
gzip_disable "msie6";
gzip_vary on;
gzip_min_length 1000;
gzip_proxied any;
gzip_comp_level 7;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript;
location ~ ^/medication-care/view-online-verification-request/(.*)/(.*)$ {
set $tmp /view-online-verification-request/$1/$2;
return 301 https://$host/v2/#$tmp;
}
location ~ ^/app/auth/employee/sso {
return 301 https://$host/v2/#/sso-login?$args;
}
# serve static content
root /usr/share/nginx/html;
error_page 404 /404.html;
location ~ /\.ht {
deny all;
}
location ~ \.(html)$ {
add_header Cache-Control "no-cache, no-store, must-revalidate";
add_header Pragma "no-cache";
expires 0;
}
location ~ ^(|/v2)/version\.json$ {
add_header Cache-Control "no-cache, no-store, must-revalidate";
add_header Pragma "no-cache";
expires 0;
}
}