nginx: When no base url, remove the unneed rewrite
This commit is contained in:
parent
b7344f2b73
commit
acabe41e07
@ -30,4 +30,9 @@ run() {
|
|||||||
run "${FIC_BASEURL}" "${PATH_STATIC}"
|
run "${FIC_BASEURL}" "${PATH_STATIC}"
|
||||||
touch "/base_changed"
|
touch "/base_changed"
|
||||||
|
|
||||||
|
if [ "${FIC_BASEURL}" == "/" ] && [ -f /etc/nginx/conf.d/default.conf ]
|
||||||
|
then
|
||||||
|
sed -i "s:location / {:location @notneeded {:" /etc/nginx/conf.d/default.conf
|
||||||
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user