I would be ashamed to admit how much time I have wasted on this "simple" issue.


I was able to install a SSL cert and get it working with no browser warnings, but I can't even use tutorials to figure this basic problem out:


Code:
<VirtualHost 101.9.xx.50:80>
DocumentRoot "/var/www/html/domain.com"
ServerName www.domain.com
ServerAlias domain.com *.domain.com
<Directory "/var/www/html/domain.com">
allow from all
Options +Indexes
</Directory>
</VirtualHost>
Result: http://www.domain.com/[/url] does not work at all:
"Server not found"

Code:
<VirtualHost domain2.com:80>
DocumentRoot "/var/www/html/domain2.com"
ServerName domain2.com
ServerAlias www.domain2.com *.domain2.com
<Directory "/var/www/html/domain2.com">
allow from all
Options +Indexes
</Directory>
</VirtualHost>
http://www.domain2.com/[/url] does not work at all:
"Server not found"

Code:
<VirtualHost *:80>
DocumentRoot "/var/www/html/domain3.com"
ServerName domain3.com:80
ServerAlias www.domain3.com *.domain3.com
</VirtualHost>
http://www.domain3.com/[/url] does not work at all:
"Server not found"


Code:
<VirtualHost domain4.com:80>
DocumentRoot "/var/www/html/domain4.com"
ServerName domain4.com:80
ServerAlias www.domain4.com *.domain4.com
</VirtualHost>
http://www.domain4.com/[/url] does not work at all:
"Server not found"

I could post 15 more variations and none of them work...
This cannot possibly be so hard, what am I doing wrong?
Thank you.