I understand that you are not able to reach the Default apache page with domain name, When you register for the domain in registered doamins, AWS will automatically create a Hosted Zone for you , It is simply a Control panel or DNS manager.
So, Now you have a HostedZone Configured let's say
mydomain.org and You need to configure like the below. NS and SOA are created by AWS for you.
| Record Name | Record Type | Routing Policy | Value | --- | --- | --- | | mydomain.org | NS| Simple | ns-bla bla | test.mydomain.org | SOA | Simple | some entry | mydomain.org | A | Simple | IP Adress of Server | test.mydomain.org | A | Simple | IP Adress of Server
Okay, If the above DNS entries are good, Let's look at apache Configuration.
When you install apache, it will have the default configuration file in this location
/etc/apache2/sites-available/000-default.conf , Please check
ServerName mydomain.org and
ServerAlias test.mydomain.org are present in the server
# Begin vhost record on the default HTTP port 80 <VirtualHost *:80> # This is the name of the vhost. ServerName mydomain.org # These are alternative names for this same vhost. # We put the other domains here. They will all go to the same place. ServerAlias test.mydomain.org # Directory where the website code lives. DocumentRoot /var/www/html <Directory /> Options FollowSymLinks AllowOverride All </Directory> </VirtualHost>
If about requirements are met you do not have any issues, If you have any issues please let me know
Using own domain for cognito. Rejected bc no A record. But I have one.asked 3 years ago
How can I get the IP address of my domain.?asked 3 months ago
How can I use the same domain name in different AWS accounts?asked 3 years ago
Numeric IP address reachable, but domain name not reachableasked 6 months ago
Domain not connectingasked 3 months ago
The domain is not connected to the server.asked 9 months ago
Unable to access EC2 Instance over the Public IP Addressasked 2 months ago
My instance is accessible from ipv4 address and public DNS. I want it to be accessible from domain name only.Accepted Answerasked 18 days ago
I want to move my domain name from a server to the aws server then point it/redirect to my websiteasked 6 months ago
DNS address could not be found. Diagnosing the problem. DNS_PROBE_POSSIBLE | Non-Existent Domainasked 9 months ago