Skip to content

Commit

Permalink
[FIX] redirect to target not to upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
dameyerdave committed Sep 12, 2024
1 parent 16148d5 commit dcc8de8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ EOF
target_to_use=$(echo "${target}" | sed -E "s,(http(s)?:\/\/)(.*),\1${vhost_upstream_prefix}\3,")
fi
if [[ " ${flags[*]} " =~ " r " ]]; then
echo " return 301 ${target_to_use};" >> ${location_config}
echo " return 301 ${target};" >> ${location_config}
else
echo " proxy_pass ${target_to_use};" >> ${location_config}
fi
Expand Down

0 comments on commit dcc8de8

Please sign in to comment.