Commit 0557904c authored by Vitaly Lipatov's avatar Vitaly Lipatov

update_nginx.sh: add SUBDIR support

parent 3fd7d3a6
......@@ -36,17 +36,17 @@ cat <<EOF
}
location = /$NAME/server-status/ {
location = /$SUBDIR/server-status/ {
proxy_pass $UPSTREAM;
include include/trans-proxy.conf;
access_log /var/log/nginx/$ACONF-access.log logdetail;
}
location = /$NAME {
return 301 /$NAME/\$is_args\$args;
location = /$SUBDIR {
return 301 /$SUBDIR/\$is_args\$args;
}
location /$NAME/ {
location /$SUBDIR/ {
root $DROOT;
# Вместо несуществующих jpg, png, gif отдаём приготовленную картинку
......@@ -91,7 +91,7 @@ EOF
TASK="$1"
echo "$TASK" | grep -q "ves/" || TASK="ves/$1.task"
echo "$TASK" | grep -q "ves[/-]" || TASK="ves/$1.task"
load_config "$TASK"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment