C'est le suivant part of a virtual host config that J'ai besoin de further clarification on:
<VirtualHost *:80>
# Admin email, Server Name (domain name), and any aliases
ServerAdmin example@example.com
ServerName 141.29.495.999
ServerAlias example.com
...
Ceci est et example config, similaire to what I currently have (Je ne have a domain name at le moment).
<VirtualHost *:80> - Allow le suivant settings for tous HTTP requests made on port 80 to IPs that this server can be contacted on. Par exemple, si le server could be accessed on more than one IP, you could restrict this directive to juste one à la place of both.
ServerName - If le host part of le HTTP request matches this name, alors allow le request. Normally this would be a domain name that maps to an IP, mais dans ce cas le HTTP request host must match this IP.
ServerAlias - Alternate names accepted by le server.
The confusing part for me is, in le ci-dessus scenario, si I set ServerAlias mytestname.com et alors made an HTTP request to mytestname.com, there would have to be a DNS record pointing to le server's IP for this to work? In qui case, is ServerAlias juste basically EXTRA ServerName entries?
Say I had a DNS entry such that foobar.com = 141.29.495.999 mais alors I had ServerName = 141.29.495.999 et ServerAlias was empty, would that mean that bien que foobar.com gets resolved to le right IP, parce que there is no reference to accept foobar.com in ServerName ou ServerAlias?
Or something. Man Je suis confused.