0

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.

8
  • 1
    Can you give the exact wording of the error you receive? And, ideally, the non-censored domain/subdomain you're working with? It sounds like you may just not have pointed gci.example.com at the right IP address.
    – ceejayoz
    Jan 25, 2019 at 2:26
  • @ceejayoz The exact error I am getting from Google Chrome "is This site can’t be reached gci.example.com’s server IP address could not be found. Go to example.com Search Google for gci example ERR_NAME_NOT_RESOLVED" And sorry, what do you mean by the non-censored domain/subdomain? Are you looking for the Public DNS? Jan 25, 2019 at 2:40
  • No, I'm looking for the 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?
    – ceejayoz
    Jan 25, 2019 at 2:44
  • @ceejayoz No I did not. I followed these steps: tutorials.ubuntu.com/tutorial/install-and-configure-apache#3 and all they was add a ServerName (gci.example.com) to the gci.conf Jan 25, 2019 at 2:48
  • Well, that's your problem, then. You need a DNS record in place.
    – ceejayoz
    Jan 25, 2019 at 2:49

0

You must log in to answer this question.

Browse other questions tagged .