[paste-web/oscp] Try to make blocking work



commit 7fcd1d2f8f660d75d07917a1ce78a8ec1f8871c9
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Thu Apr 30 12:37:31 2020 +0200

    Try to make blocking work

 paste.gnome.org.conf | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/paste.gnome.org.conf b/paste.gnome.org.conf
index cf649837..1ff76a4f 100644
--- a/paste.gnome.org.conf
+++ b/paste.gnome.org.conf
@@ -19,17 +19,17 @@
         SSLCertificateFile /var/serving-cert/tls.crt
         SSLCertificateKeyFile /var/serving-cert/tls.key
 
-        <Directory /var/www/html/paste.gnome.org/public>
-           RewriteEngine on
-           RewriteCond "%{HTTP_USER_AGENT}" ^omgili
-           RewriteRule . - [F]
+       RewriteEngine on
+       RewriteCond %{REQUEST_URI} ^/api/xml [OR]
+       RewriteCond %{REQUEST_URI} ^/search [OR]
+       RewriteCond %{REQUEST_URI} ^/all [OR]
+       RewriteCond %{REQUEST_URI} ^/trending
+       RewriteRule ^(.*)$ "-" [F]
 
-           RewriteCond %{REQUEST_URI} ^/api/xml [OR]
-           RewriteCond %{REQUEST_URI} ^/search [OR]
-           RewriteCond %{REQUEST_URI} ^/all [OR]
-           RewriteCond %{REQUEST_URI} ^/trending
-           RewriteRule . - [F]
+       RewriteCond "%{HTTP_USER_AGENT}" ^omgili
+       RewriteRule ^(.*)$ "-" [F]
 
+        <Directory /var/www/html/paste.gnome.org/public>
            Options Indexes FollowSymLinks
            AllowOverride All
            Require all granted


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]