[odrs-web] Alias does not allow as many directives, split the cache part into 2 separate location stanzas
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [odrs-web] Alias does not allow as many directives, split the cache part into 2 separate location stanzas
- Date: Thu, 28 Apr 2022 14:44:32 +0000 (UTC)
commit 7a7f3671e45171c9366687e01bee90c315b7d736
Author: Andrea Veri <averi redhat com>
Date: Thu Apr 28 16:44:17 2022 +0200
Alias does not allow as many directives, split the cache part into 2 separate location stanzas
nginx.conf | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/nginx.conf b/nginx.conf
index 8930a21..4413b94 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -57,6 +57,9 @@ http {
location /static {
alias /tmp/static
+ }
+
+ location ~* \.(?:ico|css|svg|js|json|jpe?g|png)$ {
expires 30d;
add_header Pragma public;
add_header Cache-Control "public";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]