Just to show you how dumb things get sometimes, I followed this guide:
http://linuxconfig.org/configure-apa...host-on-fedora
Here are the steps:
Step 1:Create a directory to contain your new website:
# mkdir /var/www/example.net
# echo Hello Web > /var/www/example.net/index.html
# chmod -R 755 /var/www/example.net
# chown -R apache.apache /var/www/example.net
Step 2: Add virtual host configuration to the bottom of /etc/httpd/conf/httpd.conf :
<VirtualHost *:80>
DocumentRoot /var/www/example.net
ServerName
www.example.net
# Other Apache config directives, logs etc.
</VirtualHost>
Step 3: Confirm the VirtualHost sytax before restarting httpd service:
# httpd -S
Step 4: Restart apache :
# /etc/init.d/httpd restart
Step 5:
If your example domain is already pointing to your server you should be ready to go. Make sure that your domain resolves an IP address of your server. For testing it is also handy to modify /etc/hosts file. For example if this is done just locally add :
# echo 127.0.0.1
www.example.net example.net >> /etc/hosts
This is the end of the example.
I carried out the steps - exactly as you see them. With this exact VirtualHost definition.
<VirtualHost *:80>
DocumentRoot /var/www/example.net
ServerName
www.example.net
# Other Apache config directives, logs etc.
</VirtualHost>
I then went to the browser and entered the URL
www.example.net and it came up with the text "Hello Web" as set in step 1. It worked perfectly! So mine is just too complex. HAHAHAHA.
Seriously. I think it has to do with the domain name I chose; it must be a full normal name as in "www.domainname.com". I just chose "xDrupalDocs.com and not "www.xDrupalDocs.com". I'll try that.