sbin/docker/Caddyfile
changeset 1571 4a1e6952afe5
parent 1558 761ba7426984
--- a/sbin/docker/Caddyfile	Tue Oct 22 10:01:37 2024 +0200
+++ b/sbin/docker/Caddyfile	Thu Nov 07 22:38:14 2024 +0100
@@ -3,19 +3,19 @@
     root * /var/www/html
 
     @main path_regexp ^/(.+)/([0-9A-Za-z_-]+)\.php$
-	@phpfile `file() && path('*.php')`
+    @phpfile `file() && path('*.php')`
 
-	rewrite /sitemap.xml /sitemap.php
+    rewrite /sitemap.xml /sitemap.php
 
-	handle @phpfile {
-	  php_fastcgi php-fpm:9000	
-	}
+    handle @phpfile {
+        php_fastcgi php-fpm:9000	
+    }
 
     handle {
       root * /var/www/html
-	  rewrite @main /{re.2}.php?rep={re.1}
+      rewrite @main /{re.2}.php?{query}&rep={re.1}
       php_fastcgi php-fpm:9000
       file_server
     }
 
-}
\ No newline at end of file
+}