How to convert Apache's `AllowOverride all` to nginx
<p>I have an Apache2 &amp; Passenger site for Rails app, that uses following configuration:</p>

<pre><code>&lt;VirtualHost *:80&gt;
  ServerName localhost
  DocumentRoot /var/www/site/public
  &lt;Directory /var/www/site/public&gt;
    AllowOverride all
    Options -MultiViews
  &lt;/Directory&gt;
&lt;/VirtualHost&gt;
</code></pre>

<p>Is there an equivalent for nginx &amp; Passenger site? Currently nginx responds to all requests in form <code>{ID}/action</code> with <code>404</code>. Here's the relevant part of nginx conf:</p>

<pre><code>   location / {
      passenger_app_root /var/www/site;
      passenger_document_root /var/www/site/public;
      passenger_enabled on;
      try_files $uri $uri/ =404;
   }
</code></pre>

<p>There's no <code>.htaccess</code> file in the app.</p>