title: 403 Forbidden on local nginx when the root directory is changed
body: <p>I have set a nginx, php, mysql and phpMyAdmin on my laptop (running Arch Linux). Everything was ok till I tried to move the root in my home directory.</p>
  
  <p>Here is the nginx configuration file I'm using: </p>
  
  <pre><code>server {
      ############### General Settings ###################
      listen       80;
      server_name  localhost;
      root   /home/me/Development;
      charset utf-8;
  
      ############## Document Root #####################
      location  / {
          index  index.php index.html index.htm;
          autoindex on;
      }
  
      ############## PHPMyAdmin #######################
      #location /phpmyadmin {
      #   rewrite ^/* /phpMyAdmin last;
      #}
  
      ############# Error redirection pages ################
      error_page  404               NGINX/html/404.html;
      error_page  500 502 503 504   NGINX/html/50x.html;
  
      ############## Proxy Settings for FastCGI PHP Server #####
      location ~ \.php$ {
           if ($request_uri ~* /phpmyadmin) {
              root /usr/share/nginx/html;
          }
  
          try_files  $uri =404;
          #fastcgi_pass 127.0.0.1:9000; (depending on your php-fpm socket configuration)
          fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
          fastcgi_index index.php;
          fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
          include fastcgi.conf;
      }
  
      location ~ /\.ht {
          deny  all;
      }
  
  }
  </code></pre>
  
  <p>So I'm trying to make this "Development" folder - the folder where I will store all my php projects. And I want to keep phpMyAdmin in its default location. 
  Now i get 403 Forbidden if i try to access phpMyAdmin or any php file on the new location - error message:</p>
  
  <pre><code>2016/05/20 14:11:46 [crit] 5292#5292: *3 stat() "/home/me/Development/test.php" failed (13: Permission denied), client: 127.0.0.1, server: localhost, request: "GET /test.php HTTP/1.1", host: "localhost"
  </code></pre>
  
  <p>It should do something with the linux groups and rights but can't figure it out.</p>