[odrs-web] Nginx rules being evaluated from top to bottom?
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [odrs-web] Nginx rules being evaluated from top to bottom?
- Date: Thu, 28 Apr 2022 15:14:18 +0000 (UTC)
commit 829739345bdaab16c82f9c704d7a1db319ca5c46
Author: Andrea Veri <averi redhat com>
Date: Thu Apr 28 17:14:09 2022 +0200
Nginx rules being evaluated from top to bottom?
nginx.conf | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/nginx.conf b/nginx.conf
index 545ac59..5bc143e 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -45,16 +45,6 @@ http {
error_log /dev/stderr;
- location / {
- proxy_cache cache;
- proxy_cache_valid 200 15m;
- proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504;
- proxy_cache_lock on;
- proxy_cache_revalidate on;
-
- proxy_pass http://odrs:8080/;
- }
-
location /static {
alias /tmp/static;
}
@@ -68,5 +58,15 @@ http {
location /1.0/reviews/api/ratings {
alias /tmp/ratings/ratings.json;
}
+
+ location / {
+ proxy_cache cache;
+ proxy_cache_valid 200 15m;
+ proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504;
+ proxy_cache_lock on;
+ proxy_cache_revalidate on;
+
+ proxy_pass http://odrs:8080/;
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]