title: nginx 1.6 alias + php5-fpm = 404 on Debian 8
body: <p>I have a ploblem with nginx shipped with Debian 8 jessie (version 1.6) and php5-fpm. This is a example of my working configuration on nginx 1.2 shipped with Debian 7 wheezy, however, it doesn't work on 1.6.</p>
  
  <pre><code>server {
      listen 80;
      server_name localhost;
  
      location / {
          try_files $uri $uri/ /error.html;
          include php.fast.conf;
      }
  
      location /phpmyadmin {
          alias /usr/share/phpmyadmin;
          include php.fast.conf;
      }
  }
  </code></pre>
  
  <p>and this is my php.fast.conf</p>
  
  <pre><code>location ~ \.php$ {
      fastcgi_split_path_info ^(.+?\.php)(/.*)?$;
      fastcgi_pass unix:/var/run/php5-fpm.sock;
      fastcgi_index index.php;
      include fastcgi_params;
  }
  </code></pre>
  
  <p>Things changed a lot on Debian 8, I modified the stock configuration to get PHP running, a php script showing phpinfo works if it is located in /var/www/html.</p>
  
  <pre><code>server {
      listen 80;
      root /var/www/html;
      index index.html index.htm index.php index.nginx-debian.html;
      server_name localhost;
  
      location / {
          try_files $uri $uri/ =404;
      }
  
      location ~ \.php$ {
          include snippets/fastcgi-php.conf;
          fastcgi_pass unix:/var/run/php5-fpm.sock;
      }
  
      location /phpmyadmin {
          alias /usr/share/phpmyadmin;
          location ~ \.php$ {
              include snippets/fastcgi-php.conf;
              fastcgi_pass unix:/var/run/php5-fpm.sock;
          }
      }
  }
  </code></pre>
  
  <p>However <a href="http://localhost/phpmyadmin" rel="nofollow">http://localhost/phpmyadmin</a> doesn't work (404), tried lots of options only get 404 / blank page / input file not specified. I think it is a fastcgi_param problem, but don't know how to fix it.</p>
  
  <p>Also, a working config will not work after upgrade, what is the reason of making changes to all of these? </p>