Welcome! Log In Create A New Profile

Advanced

change this rewrite to apache htaccess

May 26, 2009 10:54AM
The following post explains about the page caching in rails with Nginx.

http://blog.hasmanythrough.com/2008/1/30/segregated-page-cache-storage

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??
Subject Author Posted

change this rewrite to apache htaccess

millisami May 26, 2009 10:54AM

Re: change this rewrite to apache htaccess

Jim Ohlstein May 26, 2009 10:59AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 271
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready