Update Your Virtual Host Configuration File.Search for “Virtual Hosts” (without the quotes) and uncomment the Include conf/extra/nf directive below. Search for “LoadModule vhost_alias_module” (without the quotes) and uncomment the LoadModule vhost_alias_module modules/mod_vhost_alias.so directive below. Open your Apache configuration file located in C:\wamp\bin\Apache#.#.#\conf\nf, where #.#.# corresponds to the version of Apache that you are running in WAMP. Include You Virtual Host Configuration File in Apache.The screencast is meant to compliment the steps below. I recently upgraded to Windows 10 and took the opportunity to record a screencast on setting up a virtual host in WAMP. While you can setup /mysite by editing the Windows hosts file, creating a vhost is a better solution. Some applications require a “.” in the URL (ahem Magento).Virtual Hosts make permissions easier – restrict access for a single vhost on a local network vs permitting access to all sites on your local network.Virtual Hosts make URLs cleaner – localhost/mysite vs mysite.local.Setting up a virtual host (vhost) provides several benefits: The standard way of hosting sites in WAMP is restrictive. In WAMP, websites are located in the C:\wamp\You all know this. I develop on Windows (don’t judge) and run WAMP.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |