Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/cydrobolt/polr.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTarulia <takuja@gmx.de>2015-09-26 05:41:51 +0300
committerTarulia <takuja@gmx.de>2015-09-26 05:41:51 +0300
commit37e0f460fca7ffe1761b971ea52c65746f04272d (patch)
tree4ef974ef62f6bea59c0203f2ef0b97d62936b3ce
parent64ca436d3971fcb5a83802efa28e0efe24493626 (diff)
[setup] stash change for nginx-config for now
cherrypick e56fd23b39daaf364e0098bee12890753ac717a7 when needed.
-rw-r--r--setup.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/setup.php b/setup.php
index 10e124a..d4b342f 100644
--- a/setup.php
+++ b/setup.php
@@ -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');