{"id":200,"date":"2013-09-08T16:49:19","date_gmt":"2013-09-08T14:49:19","guid":{"rendered":"http:\/\/hesmid.nl\/test\/?p=200"},"modified":"2013-09-15T16:24:29","modified_gmt":"2013-09-15T14:24:29","slug":"set-up-virtual-hosts-on-wamp","status":"publish","type":"post","link":"https:\/\/hesmid.nl\/test\/set-up-virtual-hosts-on-wamp\/","title":{"rendered":"Set up virtual hosts on WAMP"},"content":{"rendered":"<p>Source:<br \/>\n<a href=\"http:\/\/codingpad.maryspad.com\/2009\/11\/08\/how-to-set-up-virtual-hosts-on-your-localhos\/\">http:\/\/codingpad.maryspad.com\/2009\/11\/08\/how-to-set-up-virtual-hosts-on-your-localhos\/<\/a><\/p>\n<p><strong>Goal: You have local copy of www.site and you want to access this through the url www. site.dev<\/strong><\/p>\n<p>Edit your hosts file (administrator rights needed), usually located in C:\\Windows\\System32\\drivers\\etc\\<\/p>\n<p><!--more-->Add for example this:<\/p>\n<pre># local development\r\n127.0.0.1 www.site.dev<\/pre>\n<p>Now open up httpd.config (you can open it from Wamp &gt; Appache) and uncomment this line:<\/p>\n<pre># Virtual hosts\r\n<span style=\"color: #3366ff;\">#Include conf\/extra\/httpd-vhosts.conf<\/span><\/pre>\n<p>open the httpd-vhosts.conf (located in\u00a0wamp-&gt;bin-&gt;apache-&gt;Apache2.2.11-&gt;conf-&gt;extra)<\/p>\n<p>And add something like this:<br \/>\n(Documentroot and ServerNamer are the important entries)<\/p>\n<pre>&lt;VirtualHost *:80&gt;\r\n    ServerAdmin admin@site.dev\r\n    DocumentRoot \"D:\/webdev\/projects\/site\"\r\n    ServerName site.dev\r\n    ServerAlias www.site.dev\r\n    ErrorLog \"logs\/site.dev-error.log\"\r\n    CustomLog \"logs\/site.dev-access.log\" common\r\n&lt;\/VirtualHost&gt;<\/pre>\n<p>Finally, if the site folder is not in the wamp\/www directory, create an alias as follows:<\/p>\n<pre>Alias \/site.dev \"d:\/webdev\/projects\/site\/\"\r\n\r\n&lt;Directory \"d:\/webdev\/projects\/site\/\"&gt;\r\n    Options Indexes FollowSymLinks MultiViews\r\n    AllowOverride all \r\n        Order allow,deny\r\n    Allow from all\r\n&lt;\/Directory&gt;<\/pre>\n<p>See also <a title=\"Configure a virtual directory using WAMP\" href=\"https:\/\/hesmid.nl\/test\/workflow\/third-post\/\">this<\/a> post<\/p>\n<p>Restart WAMP after you have done all this.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Source: http:\/\/codingpad.maryspad.com\/2009\/11\/08\/how-to-set-up-virtual-hosts-on-your-localhos\/ Goal: You have local copy of www.site and you want to access this through the url www. site.dev Edit your hosts file (administrator rights needed), usually located in C:\\Windows\\System32\\drivers\\etc\\<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[7],"tags":[5,14],"acf":[],"_links":{"self":[{"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/posts\/200"}],"collection":[{"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/comments?post=200"}],"version-history":[{"count":5,"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/posts\/200\/revisions"}],"predecessor-version":[{"id":216,"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/posts\/200\/revisions\/216"}],"wp:attachment":[{"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/media?parent=200"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/categories?post=200"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hesmid.nl\/test\/wp-json\/wp\/v2\/tags?post=200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}