I developed a website and deployed it using EC2 on AWS and redirected the domain name which I bought from domain.com to the EC2 IP address with Route 53. The site is accessible when I'm not using VPN. However, when I start using the VPN, I cannot access the website and redirect to a page that shows the site is under development. How can I fix this problem? Many thanks!!
The picture is the records of my R53 hosted zone
I also have added the values which generate by the AWS to the nameservers of domain.com. The domain name was bought last year and started using it from June.
Information of ip and nslookup:
(1) website ip: 18.222.135.126
(2) domain name: weiyipeng.com
(3) nslookup with VPN off: 18.222.135.126
(4) nslookup with VPN on: 240.0.0.6