PHP Classes

File: nginx-configuration.txt

Recommend this page to a friend!
  Classes of Alfredo Rodriguez  >  Teo  >  nginx-configuration.txt  >  Download  
File: nginx-configuration.txt
Role: Documentation
Content type: text/plain
Description: Documentation
Class: Teo
MVC Framework with configurable routes and filters
Author: By
Last change:
Date: 2 months ago
Size: 326 bytes
 

Contents

Class file image Download
# nginx configuration to remove the question mark from the URL but maintain the query string

location / { 
    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 ^/(.*)$ /index.php?$1 last;
    }   
}
For more information send a message to info at phpclasses dot org.