1. cliveportman
  2. /code
  3. /set-up-virtual-host-using-wamp

Set up Virtual Host using WAMP

Within the system tray click on the WAMP icon > Apache > httpd-vhosts.conf and add the following to the bottom of the file:

<VirtualHost *:80>
 ServerName website.dev
 DocumentRoot C:/Users/clive/Desktop/repos/website/public_html
 <Directory  "C:/Users/clive/Desktop/repos/website/public_html/">
 Options +Indexes +Includes +FollowSymLinks +MultiViews
 AllowOverride All
 Require local

Restart Apache.

Now update your hosts file to include the line: website.dev

If using Craft CMS you might need to update the following files to make sure everything is routed correctly: