I got separate domains, like:
z-note.net
skarheimdata.dyndns.org
flammingvets.net
I want etc:
z-note.net go to htdocs/znote
skarheimdata.dyndns.org go to htdocs/skarheim
flammingvets.net go to htdocs/vets
So when you enter my site with the domains, you will load different sites.
I thought this was possible using Vhost (virtual host) on xampp.
I have tried several things, like:
- Code: Select all
<VirtualHost *:80>
DocumentRoot "C:/xampplite/htdocs/znote/"
ServerName z-note.net
DirectoryIndex index.php
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "C:/xampplite/htdocs/opensim/"
ServerName skarheimdata.dyndns.org
DirectoryIndex index.php
</VirtualHost>
When I try this, I will get redirected to the folder named znote in htdocs. Even if I am using the skarheimdata-dyndns.org IP!
Note that I have already bought the domains, thats not the problem. I can use the domains, but I got all the domains redirected to the same IP (host), and I heard it was possible to make the host separate the domains by using virtual hosts.
I have tryed to google it but it seems like I got a rather unique problem, since other users dosn't seem to use same host with two separate domains.