Hi.!! I had created some webpages for a couple of friends, and I decided to get a dedicated server (A fortatrust promotion $10) so I can manage them myself.. The server came with CentOS 6, apache and Mysql preinstalled, so I just had to install webmin, the ftp users, and the virtualhost as follow: <VirtualHost *> DocumentRoot "/home/webpage1/web" ServerName www. webpage1.com ServerAlias *. webpage1.com <Directory "/home/ webpage1/web"> allow from all Options +Indexes </Directory> </VirtualHost> <VirtualHost *> DocumentRoot "/home/ webpage2/htdocs" ServerName www. Webpage2.com ServerAlias *. webpage2.com <Directory "/home/ webpage2/htdocs"> allow from all Options +Indexes </Directory> </VirtualHost> <VirtualHost *> DocumentRoot "/home/ webpage3/web" ServerName www. webpage3.com ServerAlias *. webpage3.com <Directory "/home/ webpage3/web"> allow from all Options +Indexes </Directory> </VirtualHost> Then, in Godaddy, I forwarded the domains to my server IP, but It doesnt matter wich of the 3 web addresses I type, it always take me to the webpage1, so I got a couple of questions: Do I need to set up something more, for apache to handle the virtualhosts..? Ist better to forward the domains or to redirect to a NS address..? In order to create a NS address in my server, I need tod install BIND or it can be done in other way? Thanks in advance for all your help..!!
Sorry but it is not obvious from your example if you have the following. 1. There is a space in your SeverName directive www.<sapce here>webpage3.com does this exists in the config or is that just a forum text issue? 2. Do you have a namevirtualhost directive in your file? 3. Have you restarted Apache since making the changes to the config?
Hi, thanks a lot for your answer... 1. Yes, the space was a text issue, sorry about that.. 2. Yes, I forget to include the namevirtualhost directive line, It got the server IP:NameVirtualHost 190.130.XXX.XXX 3. Yes, I have already restart apache.. So I still have no idea what is wrong.. Do I need to set up anything else..?