title: setup vhost with nginx on mamp free version
body: <p>I'd like to setup vhosts on mamp, while usin nginx instead of the default apache server. </p>
  
  <p>I browsed stack overflow and the web, but all I could find was either about pure nginx (speaking about the <code>sites-available</code> folder which isn't created by default on mamp) or about vhost with apache on mamp or about vhosts with nginx on mamp PRO.</p>
  
  <p>I did manage to switch to nginx, but all I can see now are 403 errors (and when I go back to apache server, all my vhosts are working). I did add the lines in my hosts file, but I can't manage to get the vhosts working. here is my <code>MAMP/conf/nginx/nginx.conf</code> </p>
  
  <pre><code>http {
      ...
  
      server {
          ...
  
          location / {
              index            index.html index.php;
          }
  
          location my-vhost-name.com {
              root             /Users/myName/Document/projectParentFolder/projectFolder;
              index            index.html index.php;
          }
      }
  }
  </code></pre>
  
  <p>And when I go to my-vhost-name.com, I have the 403 error message from nginx.</p>
  
  <p>Thank you for your help.</p>