You need to set your nameservers at your domain name registrar
for the domains you want to access from the Internet, just like you did for the main domain name that uses 22.214.171.124 = fandivx.net
Then you need to have a DNS Zone File Record entry for each of the domains you want to access from the Internet. Again just like you have for fandivx.net.
I use zoneedit.com which has the first 5 domains for free. I use the nameservers that are provided by ZoneEdit to tell my domain name registrar what they are by filling in their form on their control panel. Most registrars have a control panel that you can use to administer your domain name.
Each Virtual Host that is served by your XAMPP server must have their domain name resolve. This is how, when you type an address in the web browser, it can find your Virtual Host domain name. Treat each Virtual Host Domain Name just like you did when you set up fandivx.net.
- Code: Select all
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
CustomLog logs/goldenice.org-access_log common
This is now correct and all you need to do now is add your other Virtual Host Containers for your other domain names but don't add another NameVirtualHost 126.96.36.199:80
in between each container.
All the domain names must have a DNS record and must have the nameservers set at the domain name registrar.
Remember that once you have set all the nameservers at your domain name registrar for each of your domains that you use in a Virtual Host Container, that it can take up to 48 hours for them to propagate the Internet, again just like it did when you did the same for fandivx.net.
I hope this has cleared things up a bit for you.
Off topic but have you tried WinScp
. Putty integrates with it and you may find it easier to edit files on your server after you have got to know how to use it. I highly recommend it for Windows to Linux SCP or SFTP and for manipulating the files on the server. Multilingual and free too.