Commit ed5fc5b8 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add disable_page_redirect support

parent d6759c7f
......@@ -42,10 +42,16 @@ cat <<EOF
access_log /var/log/nginx/$ACONF-access.log logdetail;
}
EOF
if [ "$NGINX_disable_page_redirect" != 1 ] ; then
cat <<EOF
location = /$SUBDIR {
return 301 /$SUBDIR/\$is_args\$args;
}
EOF
fi
cat <<EOF
location /$SUBDIR/ {
root $DROOT;
......@@ -61,6 +67,7 @@ cat <<EOF
proxy_pass $UPSTREAM;
include include/trans-proxy.conf;
EOF
if [ "$NGINX_disable_cache" != 1 ] ; then
cat <<EOF
# rewrite to cache if allowed
......
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