diff options
author | Tarulia <takuja@gmx.de> | 2015-09-26 05:41:51 +0300 |
---|---|---|
committer | Tarulia <takuja@gmx.de> | 2015-09-26 05:41:51 +0300 |
commit | 37e0f460fca7ffe1761b971ea52c65746f04272d (patch) | |
tree | 4ef974ef62f6bea59c0203f2ef0b97d62936b3ce | |
parent | 64ca436d3971fcb5a83802efa28e0efe24493626 (diff) |
[setup] stash change for nginx-config for now
cherrypick e56fd23b39daaf364e0098bee12890753ac717a7 when needed.
-rw-r--r-- | setup.php | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -160,18 +160,18 @@ PHP; listen 80; server_name %SERVER_NAME%; index index.php - location = {$path}api { - rewrite ^(.*)$ {$path}api.php; + location = $path/api { + rewrite ^(.*)$ $path/api.php; } - location {$path} { + location $path/ { if (!-e \$request_filename){ - rewrite ^{$path}([a-zA-Z0-9]+)\?([a-zA-Z0-9]+)$ {$path}r.php?u=$1&lkey=$2; + rewrite ^$path/([a-zA-Z0-9]+)\?([a-zA-Z0-9]+)$ $path/r.php?u=$1&lkey=$2; } - rewrite ^{$path}([a-zA-Z0-9]+)/?$ {$path}r.php?u=$1; - rewrite ^{$path}?\+([a-zA-Z0-9]+)$ {$path}stats.php?bv=$1; + rewrite ^$path/([a-zA-Z0-9]+)/?$ $path/r.php?u=$1; + rewrite ^$path/?\+([a-zA-Z0-9]+)$ $path/stats.php?bv=$1; } - location {$path}t { - rewrite ^{$path}t-([a-zA-Z0-9]+)/?$ {$path}r.php?u=t-$1; + location $path/t { + rewrite ^$path/t-([a-zA-Z0-9]+)/?$ $path/r.php?u=t-$1; } }"; $handle = fopen('.nginx-config', 'w'); |