Virtual Hosting?
Posted: 05. December 2007 22:41
I have tried already a lot of things but i cant get the fellowing working:
What i want
domein1.com directing to map1
domein2.com directing to map2
what i have is:
NameVirtualHost *:80
<VirtualHost domein1.com>
ServerName domein1.com
DocumentRoot "path to map
CustomLog logs/domein1.access.log combined
ErrorLog logs/domein1.error.log
</VirtualHost>
<VirtualHost domein2.com>
ServerName domein2.com
DocumentRoot "path to map"
CustomLog logs/domein2.access.log combined
ErrorLog logs/domein2.error.log
</VirtualHost>
// And in hosts file of windows:
127.0.0.1 localhost
127.0.0.1 domein1.com # domein1.com
127.0.0.1 domein2.com # domein2.com
btw got 1 ip who is working as fellow: 88.88.88.88 to> 192.169.2.2
first is ip how to visit the website and second is the ip who the server is responding on. Both domein names are set in the DNS to link to the ip 88.88.88.88
What i want
domein1.com directing to map1
domein2.com directing to map2
what i have is:
NameVirtualHost *:80
<VirtualHost domein1.com>
ServerName domein1.com
DocumentRoot "path to map
CustomLog logs/domein1.access.log combined
ErrorLog logs/domein1.error.log
</VirtualHost>
<VirtualHost domein2.com>
ServerName domein2.com
DocumentRoot "path to map"
CustomLog logs/domein2.access.log combined
ErrorLog logs/domein2.error.log
</VirtualHost>
// And in hosts file of windows:
127.0.0.1 localhost
127.0.0.1 domein1.com # domein1.com
127.0.0.1 domein2.com # domein2.com
btw got 1 ip who is working as fellow: 88.88.88.88 to> 192.169.2.2
first is ip how to visit the website and second is the ip who the server is responding on. Both domein names are set in the DNS to link to the ip 88.88.88.88