I have external IP and hostname configured for my machine.
Inside the application, I am using only the domain names to access the APIs. So when i try to access my AP
Ok. You are missing a rewrite condition
DocumentRoot "/var/www/html"
#ServerName ayz-abc.mysite.com/
# Other directives here
RewriteEngine On
RewriteCond %{HTTP_HOST} !^ayz-abc.mysite.com$
RewriteRule /.* https://ayz-abc.mysite.com/ [R]
If you don't include this condition it will redirect even with the hostname