[wgo-web/nginx] Make the block working correctly
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [wgo-web/nginx] Make the block working correctly
- Date: Wed, 16 Dec 2020 09:14:23 +0000 (UTC)
commit c4ac0c39c4a3e12694b15e847b3ec0d6e95b07ef
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Wed Dec 16 10:14:19 2020 +0100
Make the block working correctly
nginx.conf | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/nginx.conf b/nginx.conf
index b18551d..5d3f8f8 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -64,12 +64,6 @@ http {
client_max_body_size 100M;
- #location /support-gnome/ {
- # if ($allowed_country = no) {
- # return 444;
- # }
- #}
-
rewrite ^/foundation/charter.html https://wiki.gnome.org/Foundation/Charter permanent;
rewrite ^/foundation/membership/members.php /foundation/membership permanent;
rewrite ^/vote https://vote.gnome.org permanent;
@@ -126,6 +120,13 @@ http {
try_files $uri $uri/ /index.php?$args;
}
+ location /support-gnome/ {
+ if ($allowed_country = no) {
+ return 444;
+ }
+ try_files $uri $uri/ /index.php?$args;
+ }
+
location ~ \.php$ {
include fastcgi_params;
fastcgi_intercept_errors on;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]