hawkesley Posted January 9, 2009 Report Share Posted January 9, 2009 i need to access 3 domains on my server.I went through the following set up but niether the localhost or the websites were located.Where have I gone wrong?Set up steps. I have set the dns to point at the server as followswww.e-books4u.net / ip address 217.49.159.226and so on for the other 2.In my www folder I have set up 3 sub folders with the files in them named as followse-books4ucatering4cashhawkesleyI have modified the conf file as follows NameVirtualHost * # VirtualHost example:# Almost any Apache directive may go into a VirtualHost container.# The first VirtualHost section is used for requests without a known# server name.##<VirtualHost *># ServerAdmin webmaster@dummy-host.example.com# DocumentRoot /www/docs/dummy-host.example.com# ServerName dummy-host.example.com# ErrorLog logs/dummy-host.example.com-error_log# CustomLog logs/dummy-host.example.com-access_log common#</VirtualHost> <VirtualHost *>ServerName www.e-books4u.netDocumentRoot/www/e-books4u</VirtualHost> <VirtualHost *>ServerName www.catering4cash.comDocumentRoot/www/catering4cash</VirtualHost> <VirtualHost *>ServerName www.hawkesleypublishingsolutions.comDocumentRoot/www/hawkesley</VirtualHost> NameVirtualHost *<VirtualHost *> ServerName localhost:80 DocumentRoot /www</VirtualHost> I stopped and restarted the apache server, not the machine. Quote Link to comment Share on other sites More sharing options...
hawkesley Posted January 9, 2009 Author Report Share Posted January 9, 2009 i need to access 3 domains on my server.I went through the following set up but niether the localhost or the websites were located.Where have I gone wrong?Set up steps. I have set the dns to point at the server as followswww.e-books4u.net / ip address 217.49.159.226and so on for the other 2.In my www folder I have set up 3 sub folders with the files in them named as followse-books4ucatering4cashhawkesleyI have modified the conf file as follows NameVirtualHost * # VirtualHost example:# Almost any Apache directive may go into a VirtualHost container.# The first VirtualHost section is used for requests without a known# server name.##<VirtualHost *># ServerAdmin webmaster@dummy-host.example.com# DocumentRoot /www/docs/dummy-host.example.com# ServerName dummy-host.example.com# ErrorLog logs/dummy-host.example.com-error_log# CustomLog logs/dummy-host.example.com-access_log common#</VirtualHost> <VirtualHost *>ServerName www.e-books4u.netDocumentRoot/www/e-books4u</VirtualHost> <VirtualHost *>ServerName www.catering4cash.comDocumentRoot/www/catering4cash</VirtualHost> <VirtualHost *>ServerName www.hawkesleypublishingsolutions.comDocumentRoot/www/hawkesley</VirtualHost> NameVirtualHost *<VirtualHost *> ServerName localhost:80 DocumentRoot /www</VirtualHost> I stopped and restarted the apache server, not the machine. I have solved the problem by using the apanelto create the virtual hosts and all seems well. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.