Posts

Showing posts from January, 2019

Setup a Virtual Host on WAMP 3

Setting up a virtual host provides several benefits: Virtual Hosts make URL cleaner Virtual Hosts make permissions easier Some applications require a “.” in the URL like Magento. So, let's setup a virtual host (vhost) in WAMP 3. Step 1: Change Virtual Host Configuration File in Apache Open your Apache configuration file located in C:\wamp64\bin\apache\apache2.4.37\conf\httpd.conf Search LoadModule vhost_alias_module  and un-comment the line  LoadModule vhost_alias_module modules/mod_vhost_alias.so Search Virtual Hosts and un-comment the line  Include conf/extra/httpd-vhosts.conf Save and close the httpd.conf file Step 2: Update Virtual Host Configuration File Open your vhost configuration file located one directory down from the Apache configuration file directory in  C:\wamp64\bin\apache\apache2.4.37\conf\extra\httpd-vhosts.conf Add the configuration for your new vhost like below #Your new site <VirtualHost *:80>   ServerName local.newsite.