Changed @rewrites location & rules
Renamed "@rewrites" to "@dynamic" and updated references to that location. Removed 'rewrite' rule from @dynamic and replaced it with 'try_files' rule.
This commit is contained in:
parent
3d0a36b396
commit
4eb499d5ca
1 changed files with 14 additions and 14 deletions
|
@ -134,7 +134,7 @@ MEMCACHED_SERVERS
|
||||||
|
|
||||||
if ( $memcached_request = 1) {
|
if ( $memcached_request = 1) {
|
||||||
memcached_pass memcached-servers;
|
memcached_pass memcached-servers;
|
||||||
error_page 404 = @rewrites;
|
error_page 404 = @dynamic;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $memcached_request = 0) {
|
if ( $memcached_request = 0) {
|
||||||
|
@ -142,9 +142,9 @@ MEMCACHED_SERVERS
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
## rewrite rules
|
## Dynamic (non-memcached) requests
|
||||||
location @rewrites {
|
location @dynamic {
|
||||||
rewrite ^ /index.php?$args last;
|
try_files $uri $uri/ /index.php$is_args$args;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue