I have an Ubuntu Instance on AWS. I have a small web page running on an Apache 2.4 server. I can access the web page from my own computer and devices off of my network when I use the Public DNS or Public IP of the AWS instance. However, I can't access it from the ServerName address that is defined in my virtual host.
Here is my gci.conf:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /html/website
ServerName gci.example.com
</VirtualHost>
Everything seems to be set up correctly, based on the output of apache2ctl:
VirtualHost configuration:
*:80 gci.example.com
(/etc/apache2/sites-enabled/gci.conf:1)
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/html/website"
When I try to access the web page from 'gci.example.com' I get an error that the "IP can not be found"
I have been stuck on this for hours and have looked extensively at the documentation and other online resources. Thank you for any help.
gci.example.com
at the right IP address.ServerName
you're using.gci.example.com
, but obviously you don't control example.com so I'm looking for the actual domain you're using. Did you set up DNS records for it?