- 最新
- 最多得票
- 最多評論
WHOIS shows the registrar is IT Cosmic in NSW, with four Route 53 nameserver records https://who.is/whois/intellilearner.online
These four nameservers need to match the NS records in the Public Hosted Zone for the domain, in your AWS account. If these don't match then this could be your problem, and you may need to work with the registrar to achieve this.
If you need to change any NS records then drop the TTL to something like 300 seconds before starting, to ensure any changes propagate sooner (the default TTL is usually something like two days). See steps 4 thru 9 of https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/migrate-dns-domain-in-use.html
Right now the value of the A-record for intellilearner.com is 3.64.163.50 which is an EC2 instance in the Sydney region.
$ nslookup 13.236.212.187
187.212.236.13.in-addr.arpa name = ec2-13-236-212-187.ap-southeast-2.compute.amazonaws.com.
Do you recognise this instance as one of yours?
Hello.
I have an issue with redirecting a domain to an AWS app that I'm not able to solve.
What AWS service is "AWS app"?
If the web server is running on EC2, etc., I think it is necessary to check whether redirect settings are configured in the web server settings.
It is EC2. I'll check the config. tx
I should also mention that your answer was also correct. intellilearner.com was written in Config.php file. I changed it to intellilearner.online and now it is redirecting correctly to my EC2 app. Thanks.
When I send a request to https://intellilearner.com
I get a 301 Moved Permanently
response, with a Location header that redirects me to https://dan.com/buy-domain/intellilearner.com?redirected=true
.
Is this your desired behavior - or have you fixed the behavior that you raised this question for?
% curl -vko /dev/null https://intellilearner.com
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying 3.64.163.50:443...
* Connected to intellilearner.com (3.64.163.50) port 443
* ALPN: curl offers h2,http/1.1
* (304) (OUT), TLS handshake, Client hello (1):
} [323 bytes data]
* (304) (IN), TLS handshake, Server hello (2):
{ [122 bytes data]
* (304) (IN), TLS handshake, Unknown (8):
{ [19 bytes data]
* (304) (IN), TLS handshake, Certificate (11):
{ [2872 bytes data]
* (304) (IN), TLS handshake, CERT verify (15):
{ [520 bytes data]
* (304) (IN), TLS handshake, Finished (20):
{ [52 bytes data]
* (304) (OUT), TLS handshake, Finished (20):
} [52 bytes data]
* SSL connection using TLSv1.3 / AEAD-AES256-GCM-SHA384
* ALPN: server accepted h2
* Server certificate:
* subject: CN=intellilearner.com
* start date: Mar 19 21:08:59 2024 GMT
* expire date: Jun 17 21:08:58 2024 GMT
* issuer: C=US; O=Let's Encrypt; CN=R3
* SSL certificate verify ok.
* using HTTP/2
* [HTTP/2] [1] OPENED stream for https://intellilearner.com/
* [HTTP/2] [1] [:method: GET]
* [HTTP/2] [1] [:scheme: https]
* [HTTP/2] [1] [:authority: intellilearner.com]
* [HTTP/2] [1] [:path: /]
* [HTTP/2] [1] [user-agent: curl/8.4.0]
* [HTTP/2] [1] [accept: */*]
> GET / HTTP/2
> Host: intellilearner.com
> User-Agent: curl/8.4.0
> Accept: */*
>
< HTTP/2 301
< server: openresty
< date: Wed, 27 Mar 2024 11:18:44 GMT
< content-type: text/html; charset=utf-8
< location: https://dan.com/buy-domain/intellilearner.com?redirected=true
< x-frame-options: SAMEORIGIN
< x-xss-protection: 1; mode=block
< x-content-type-options: nosniff
< x-download-options: noopen
< x-permitted-cross-domain-policies: none
< referrer-policy: strict-origin-when-cross-origin
< cache-control: no-cache
< set-cookie: bc9bd58fe1b6ef954d6d794db6d30e25e8ff50634d24346cf8006ef422e3c05c6e48b07678e34d08c97ad3f91012c80ac690b50f51fbd49b16e301de58d9c5ca=ZLPQTZ5yPEmEaqnpaw%2BDlk%2BV%2FPm2GyrTBMxO6UWH%2F8p5WKZIuV6IQfAoZuo%2BWCBrmNcOGSNfWDk0HboxmFaTjHPMSKwLGQW5i9Lf7nT0XCXOQ0IFtm6ISdD9eVlMCJT7dyuNOmZGSkhFXZ8YDiFSQ%2BOJ7sxdgvEaXAMuCMb26fM3sMO7OtPUeUKdNX0Luol3zviG%2BkCDppVfWL4R3QAwmgGfiuPYuHEECnF0nq%2Bublb8PDc2Sis0JVOXdWh2sX1y5UI%2ByxmErH7KZg%2FsVq0WjXQ2iH1px67qhbDBI%2F5VRxjGjpcRptTGk%2FjkfiZy30I4VoRdv0bb8eeZa%2BGQK4R5ePnti5o9Ic%2FoPtfIng%3D%3D--Qzy%2B8vLsWn%2Bg7G4P--2jVNG%2FNM0%2Fr5lXH0voUKBw%3D%3D; path=/; secure; HttpOnly; SameSite=Lax
< x-request-id: dcc5342c-2702-4951-96a3-07041429a6ed
< x-runtime: 0.227614
<
{ [127 bytes data]
100 127 0 127 0 0 301 0 --:--:-- --:--:-- --:--:-- 301
* Connection #0 to host intellilearner.com left intact
Max, the issue is not with intellilearner.com, I lost this domain name, no longer mine. The issue I'm trying to fix is with intellilearner.online. It is not pointing to my EC2, instead it is pointing to the same page that intellilearner.com is pointing to, although I did configure .online to point to my EC2.
相關內容
- AWS 官方已更新 2 年前
Tx Steve. I'll check the config.
Steve, the nameservers match 100% my AWS EC2 Hosted Zone intellilearner.online. And I lowered down the NS TTL to 900. Still no changes, redirecting to https://dan.com/
This is fairly conclusive https://dnschecker.org/#A/intellilearner.online
13.236.212.187 is an EC2 instance in the Sydney region.
Does this address align with the A-record's value in the Route 53 Public Hosted Zone for intellilearner.online ? And do you recognise the EC2 instance as one of yours?
Taking DNS out of it, when I try to hit http://13.236.212.187/ in a browser I get redirected to the dan.com site. So it doesn't appear to be anything to do with Route 53, more to do with something within the config on the device at 13.236.212.187 itself.
(plain HTTP only, HTTPS give a Secure Connection Failed error)
Does this address align with the A-record's value in the Route 53 Public Hosted Zone for intellilearner.online ? [X] Yes And do you recognise the EC2 instance as one of yours? [X] Yes, it is mine. This is the EC2 which has my app in it Taking DNS out of it, when I try to hit http://13.236.212.187/ in a browser I get redirected to the dan.com site. [X] This is the problem I'm trying to fix. Plain HTTP only, HTTPS give a Secure Connection Failed error. [X] I did not setup the certificate yet until I resolve the redirection issue.
So it doesn't appear to be anything to do with Route 53, more to do with something within the config on the device at 13.236.212.187 itself. [X] Do you mean that there is a config file that is redirecting to intellilearner.com and hence it is showing dan.com page?
Yes. On the EC2 there is a webserver listening on ports 80 & 443 (it's not presenting a valid cert, which is why HTTPS is throwing an error) and in that webserver's config there is a redirect to intellilearner.com and thus onto dan.com (or just a redirect straight to dan.com ).
Assuming that 13.236.212.187 is an EC2 in your account that you have access to, login to it and change the webserver config to stop it doing that, and instead point to your app.
If it's running Linux you can find out what the webserver is with
sudo netstat -tulpn | egrep -w '80|443'
and it should hopfully show you that the process is calledngnix
(Nginx webserver) orhttpd
(Apache), although it could be something else.Places to start looking for the config files would be
/etc/nginx/nginx.conf
or/etc/httpd/conf/httpd.conf