nginix change root directory if location = something
<p>Hi guys i need a little help, with nginx configuration.
So my problem is that i don't want to have phpmyadmin in my website root directory.
Now my nginx.conf looks:</p>

<pre><code>server {
   listen 80;
   server_name 192.168.21.177;
   charset utf-8;

   access_log /dev/null main;
   error_log /dev/null;

   root /home/web/wesite1;

    location / {
        index index.php;
    }   
    location /phpmyadmin/ {
       root /home/web/phpmyadmin;
       index index.php;
   }

   location ~ \.php$ {
       include fastcgi_params;
   }

   location ~ /\.ht {
       deny all;
   }
}
</code></pre>

<p>But it's not working.
Thanks :)</p>