Skip to content

Commit

Permalink
oops, add configs in nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
marat2509 committed Dec 8, 2024
1 parent d08f0b9 commit 718bd4b
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions nginx/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,16 @@ server {
# ep6 => ep6.6
rewrite ^/(dll/)?update.ver$ /eset_upd/ep6.6/$1update.ver break;
}
if ($ver ~ "^ep[7-9]$") {
# Versions: ep7 -> ep9
if ($ver ~ "^ep[7-8]$") {
# Versions: ep7 -> ep8
# Rewrite logic:
# ep7 => ep7
# ep8 => ep8
rewrite ^/(dll/)?update.ver$ /eset_upd/$ver/$1update.ver break;
}
if ($ver ~ "^ep9$") {
# Versions: ep9 -> ep9
# Rewrite logic:
# ep9 => ep9
rewrite ^/(dll/)?update.ver$ /eset_upd/$ver/$1update.ver break;
}
Expand All @@ -37,6 +42,12 @@ server {
# ep11 => ep11
rewrite ^/(dll/)?update.ver$ /eset_upd/$ver/$1update.ver break;
}
if ($ver ~ "^ep12$") {
# Versions: ep12 -> ep12
# Rewrite logic:
# ep12 => ep12
rewrite ^/(dll/)?update.ver$ /eset_upd/$ver/$1update.ver break;
}
if ($ver ~ "^v[3-9]$") {
# Versions: v3 -> v9
# Rewrite logic:
Expand Down

0 comments on commit 718bd4b

Please sign in to comment.