title: nginx alias syntax
body: <p>i'm trying to alias the location of some pics in the website using the following syntax :</p>
  
  <pre><code>location ~/^apple-touch-icon(.*)\.png$ {
   alias /opt/web_alpha/img/$1;
   } 
  </code></pre>
  
  <p>is that right or I missied something else 
  in access.log of nginx I got this message :</p>
  
  <blockquote>
    <p>"GET /apple-touch-icon.png HTTP/1.1" 404 142</p>
  </blockquote>
  
  <p>but in the browser it shows me the index page </p>
  
  <p>moreover i'm confused regarding alias and rewriting in nginx , which should I use </p>