From 35d389a9fa98287bb0c840d7b9e5b77f648c896b Mon Sep 17 00:00:00 2001 From: Jakub Kadlcik Date: Mon, 22 Nov 2021 01:41:35 +0100 Subject: [PATCH] copr: temporarily disable dir-generator It causes 403 Forbidden errors when trying to access any backend URL, not only the `dir-generator.php` file. The exact line causing the issue is index-file.names = ( "/dir-generator.php" ) but to be sure, I am commenting-out the whole logic. --- .../backend/templates/lighttpd/lighttpd.conf | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/roles/copr/backend/templates/lighttpd/lighttpd.conf b/roles/copr/backend/templates/lighttpd/lighttpd.conf index 89f39ab127..6bb6433cc1 100644 --- a/roles/copr/backend/templates/lighttpd/lighttpd.conf +++ b/roles/copr/backend/templates/lighttpd/lighttpd.conf @@ -319,14 +319,14 @@ server.max-keep-alive-idle = 2 # 'cgi.assign' conditionally - the trick is to do this only on paths that both # (a) end with slash (= directories) and (b) do not contain 'dir-generator' # string (guard against '/some/dir-generator.php/' or alike hacks). -index-file.names = ( - "/dir-generator.php" -) -$HTTP["url"] =~ "/$" { - $HTTP["url"] !~ "dir-generator" { - cgi.assign = ( "/dir-generator.php" => "/usr/bin/php-cgi" ) - } -} +# index-file.names = ( +# "/dir-generator.php" +# ) +# $HTTP["url"] =~ "/$" { +# $HTTP["url"] !~ "dir-generator" { +# cgi.assign = ( "/dir-generator.php" => "/usr/bin/php-cgi" ) +# } +# } ## ## deny access the file-extensions