July 19, 201412 yr Hello all, I'm a developer by trade so I don't really concentrate on servers but I need to split my WAMP server to host two sites. The reason being is because I need to host a Magento site on one site, (to store my ecommerce work on), and on the other I need a host to serve my other projects. I've googled everywhere but there aren't any decent tutorials. Can anyone send me links of good online tutorials please? Thanks in advance.
July 19, 201412 yr I don't use WAMP but it should be as straightforward as adding each site in a folder. According to the docs: Using wampserver The “www” directory will be automatically created (usually c:\wamp\www) Create a subdirectory in “www” and put your PHP files inside. Click on the “localhost” link in the WampSever menu or open your internet browser and go to the URL : http://localhost So assuming you have a folder c:\wamp\www simply add another folder for each site, eg c:\wamp\www\site1 c:\wamp\www\site2 Then just call each site using http://localhost/www/site1 or http://localhost/site1 If that doesn't work you'll probably have to use the virtual route as explained at http://www.trailheadinteractive.com/creating_multiple_virtual_sites_a_single_apache_install_windows_xp
July 19, 201412 yr Author Thanks, I've found a couple of decent topics on creating virtual hosts for WAMP. Thanks anyway.
July 20, 201412 yr Aye, I use wamp and xampp. Store the folders in the www folder and then use the apache > httpd.conf file to add virtual hosts in like: <VirtualHost *:80> DocumentRoot "C:/wamp/www/_personal/test" ServerName test.dev </VirtualHost> be sure to have this in there too: NameVirtualHost *:80 IncludeOptional "c:/wamp/vhosts/*" Include "c:/wamp/alias/*" <VirtualHost *:80> DocumentRoot "c:/wamp/www/" ServerName localhost </VirtualHost> Then you should head to C:\Windows\System32\drivers\etc (if using windows) and edit the hosts file to include something like: 127.0.0.1 test.dev Restart all services on Wamp and then hit the URL http://test.dev and the site should be there
Create an account or sign in to comment