Forum: NGINX change this rewrite to apache htaccess

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.
2974d09ac2541e892966b762aad84943?d=identicon&s=25 millisami (Guest)
on 2009-05-26 17:03
(Received via mailing list)
The following post explains about the page caching in rails with Nginx.

http://blog.hasmanythrough.com/2008/1/30/segregate...

I like to implement this solution with my app but on Apache. So, the
main block/route is

  if (-f $request_filename) {
    break;
  }
    if (-f /cache$request_filename) {
    rewrite (.*) /cache$1 break;
    break;
  }

  if (-f /cache$request_filename.html) {
    rewrite (.*) /cache$1.html break;
    break;
  }
What could be the Apache equivalent for the above Nginx related code??

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,2398,2398#msg-2398
2c6f80fff253635f12c249ef4f116796?d=identicon&s=25 Jim Ohlstein (Guest)
on 2009-05-26 17:05
(Received via mailing list)
millisami wrote:
>     rewrite (.*) /cache$1 break;
>
>
>
>
You've now posted this to the same list twice.

Just a thought, but perhaps you'd be better off asking for help on an
apache mailing list.

Jim
This topic is locked and can not be replied to.