title: yii setting on nginx?
body: <p>I am setting by Yii project on nginx.</p>
  
  <p>I am using <code>.htaccess</code> for removing <code>.index.php</code> from url.</p>
  
  <pre><code>RewriteEngine on
  RewriteBase /web
  # if a directory or a file exists, use it directly
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  
  # otherwise forward it to index.php
  RewriteRule . index.php
  </code></pre>
  
  <p>MY project Urls are not working.Getting this error message:</p>
  
  <pre><code>  Something has triggered missing webpage on your website. This is the default 404   error page for nginx that is distributed with the Amazon Linux AMI. It is located at /usr/share/nginx/html/404.html
  
    You should customize this error page for your own site or edit the error_page directive     in the nginx configuration file /etc/nginx/nginx.conf.
  </code></pre>
  
  <p>But on <code>nginx</code> What I have to do to make my YII project work? </p>