title: set nginx default path and route
body: <p>I am searching for a long time on net. But no use. Please help or try to give some ideas how to achieve this.
  I have a  nginx  sevice,it has some projects,when I use this config,it can work well.</p>
  
  <pre><code>#user  nobody;
  worker_processes  1;
  
  events {
    worker_connections  1024;
  }
  http {
    include       mime.types;
    default_type  application/octet-stream;
  
  
  sendfile        on;
  
  
  
  keepalive_timeout  65;
  
  server {
      listen       80;
      server_name  localhost;
  
      #charset koi8-r;
  
      #access_log  logs/host.access.log  main;
      root           html;
      ***location /v1/ {
          alias html/v1/;
          index  index.html index.htm index.php;
      }***
      location /v2/ {
          alias   html/v2/;
          index  index.html index.htm index.php;
      }
      location /mch/ {
          alias   html/mch/;
          index  index.html index.htm index.php;
      }
      location /user/ {
          alias   html/user/;
          index  index.html index.htm index.php;
      }
      location /merchant/ {
          alias   html/merchant/;
          index  index.html index.htm index.php;
      }
      error_page   500 502 503 504  /50x.html;
      location = /50x.html {
          root   html;
      }
      location ~ \.php$ {
  
          fastcgi_pass   127.0.0.1:9000;
          fastcgi_index  index.php;
          fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
          include        fastcgi_params;
      }
  
  
  }
  
  
  
  
  
  }
  </code></pre>
  
  <p>And then I want set the default path v1.I change the config like this:</p>
  
  <pre><code>location / {
          alias  html/v1/;
          index  index.html index.htm index.php;
      }
  </code></pre>
  
  <p>It worked wrong whit an error like this:</p>
  
  <pre><code>No input file specified.
  </code></pre>
  
  <p>Can someone  help me?Thanks in advance.</p>