Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- location / {
- # If the file exists as a static file serve it directly without
- # running all the other rewite tests on it
- if (-f $request_filename) {
- expires max;
- break;
- }
- if (!-f $request_filename){
- set $rule_0 1$rule_0;
- }
- if (!-d $request_filename){
- set $rule_0 2$rule_0;
- }
- if ($rule_0 = "21"){
- rewrite ^/.* /yourls-loader.php last;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement