title: How to serve different url with one file in nginx
body: <p>I use docker container to serve an html and some other files. there is no back-end website. I just server some static files.</p>
  
  <p>I need to point some different url to one folder.</p>
  
  <p>I have one index.html file in /usr/share/nginx/html.</p>
  
  <p>I want to point all ulr like:</p>
  
  <pre><code> / , /a , /a/b/c , /a/ 
  </code></pre>
  
  <p>to the same:</p>
  
  <pre><code>/usr/share/nginx/html/index.html file.
  </code></pre>
  
  <p>my nginx config is as below :</p>
  
  <pre><code>server {
      listen       80;
  
      location /lalala/ {
          proxy_pass http://lalalalalala/;
      }
  
      location /proxy/bebebebe/ {
          proxy_pass https://www.bebebebe.com/;
      }
  
      location / {
        root /usr/share/nginx/html;
        index  index.html index.htm;
      }
  }
  </code></pre>
  
  <p>I try to use alias like this:</p>
  
  <pre><code>location / {
    root /usr/share/nginx/html;
    index  index.html index.htm;
    alias /a /usr/share/nginx/html
    alias /b /usr/share/nginx/html      
    alias /a/b/c /usr/share/nginx/html
  }
  </code></pre>
  
  <p>But it's not work. </p>