title: PhpMyAdmin and nginx configuration , get phpmyadmin after IP
body: <p>What i'm trying to do is to access phpmyadmin from IP/phpmyadmin
  I have edited the default conficuration file in the Site-available directory 
  my configuration is : </p>
  
  <pre><code>server {
      location /phpmyadmin {
             root /usr/share/;
             index index.php;
             location ~ ^/phpmyadmin/(.+\.php)$ {
                     try_files $uri =404;
                     root /usr/share/;
                     fastcgi_pass 127.0.0.1:9000;
                     fastcgi_index index.php;
                     fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                     include /etc/nginx/fastcgi_params;
                 }
                location ^~ /phpmyadmin/ { 
              alias /usr/share/phpmyadmin/; 
  }
          }
          location /phpMyAdmin {
                 rewrite ^/* /phpmyadmin last;
          }
  }
  </code></pre>
  
  <p>But when I go to IP/phpmyadmin
  it redirects me to the maini index file which we see the Welcome to nginx! message 
  Any help would be great ! </p>