I made this many times but now it wont work. I have configure apache to work with different ports, and work with different ip and this same thing also i have made work ... iv configured bind as my local dns and when i go to my host for example ( i have linux server CentOS named vipc ) when i go the http:// vircent .. it opens the page that iv put in /var/www/page1/index.html. Now what im trying to do is, when i go to http:// vircent/site1 - to go and open the index.html from page1 directory. But also i want when i go to htt:// vircent/site2 to open the index.html from page2 directory.
This is what i have for now and i dont know way it wont work
NameVirtualHost *:80 <VirtualHost *:80> ServerName vircent DocumentRoot /var/www/page1 </VirtualHost> <VirtualHost *:80> ServerName vircent DocumentRoot /var/www/page2 </VirtualHost>