Forum: NGINX how to rewrite this :apache to nginx

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
2dac4384238ef183a10fadf10ed6968c?d=identicon&s=25 Big Bet (bigbet)
on 2009-02-23 04:20
RewriteEngine On
Options +Followsymlinks
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.* - [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^.*/images/(.*)$ /images/$1 [L]
5640e332954fc0006aea97a155ce0afd?d=identicon&s=25 Igor Sysoev (Guest)
on 2009-02-23 10:55
(Received via mailing list)
On Mon, Feb 23, 2009 at 04:20:05AM +0100, Big Bet wrote:

> RewriteEngine On
> Options +Followsymlinks
> RewriteBase /
> RewriteCond %{REQUEST_FILENAME} -d
> RewriteRule ^.* - [L,QSA]
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteRule ^.*/images/(.*)$ /images/$1 [L]

Probably so

     root  ...

     location / {
         ...
     }

     location ~ /images/ {
         error_page  404  @404;
     }

     location @404 {
         rewrite  (/images/.+)$  $1  break;
     }
This topic is locked and can not be replied to.