Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 83af9d9ee2
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (22 sloc) 0.734 kb
location / {
index index.php;
# If the file exists as a static file serve it
# directly without running the other rewite tests
if (-f $request_filename) {
break;
}
if ($request_method = GET) {
#HTML Cache check for a direct match to the url
if (-f $document_root/cache/$request_uri) {
rewrite ^(.*)$ /cache/$request_uri;
break;
}
# or matching a folder with a html file in it
if (-f $document_root/cache/$request_uri/index.html) {
rewrite ^(.*)$ /cache/$request_uri/index.html;
break;
}
}
#Default Handling
rewrite ^/(.+)$ /index.php?url=$1 last;
}
Jump to Line
Something went wrong with that request. Please try again.