简体   繁体   中英

how to make *.domain.com works in amazon ec2 running ubuntu 18.04?

I have a domain running with amazon Route 53 on amazon instance. what I want is when I use the wildcard like this for example: anything.domain.com whatever.domain.com

currently getting this error ERR_CONNECTION_REFUSED.

DNS configuration (and Route 53) supports a * wildcard domain.

If you do this you will need to ensure that the target host can serve the domain. The error you're seeing is likely to be one of the following and not a DNS issue:

  • The security group is not allowing inbound access to you on either port 80 (for HTTP) or 443 (for HTTPS).
  • The service that should serving web traffic is not running, ensure the service is started. This includes ensuring the port that the service is trying to connect to is listened on.
  • If you're using HTTPS ensure that it is a valid SSL, insecure SSLs will cause connection issues from applications which will reject the connection.

As you're using CloudFlare remember that this will sit in front of the host, its likely that it's trying to connect to HTTPS on your host.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM