]> git.openstreetmap.org Git - chef.git/commitdiff
Reorder authorization matches
authorTom Hughes <tom@compton.nu>
Thu, 9 Mar 2023 21:54:21 +0000 (21:54 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 9 Mar 2023 21:54:21 +0000 (21:54 +0000)
cookbooks/web/templates/default/apache.frontend.erb

index 00adb4b5983792f4d045ae943dc0f5d520926521..24ba353667c5a32de8aaecbb26f309bcfebbfaa1 100644 (file)
@@ -20,8 +20,8 @@
   #
   SetEnvIfNoCase Authorization "^Basic " AUTH_METHOD=basic
   SetEnvIfNoCase Authorization "^OAuth " AUTH_METHOD=oauth1
-  SetEnvIfExpr "%{QUERY_STRING} =~ /(^|&)oauth_signature=/" AUTH_METHOD=oauth1
   SetEnvIfNoCase Authorization "^Bearer " AUTH_METHOD=oauth2
+  SetEnvIfExpr "%{QUERY_STRING} =~ /(^|&)oauth_signature=/" AUTH_METHOD=oauth1
   LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\" %Dus %{UNIQUE_ID}e %{SSL_PROTOCOL}x %{SSL_CIPHER}x %{AUTH_METHOD}e" combined_with_time
   CustomLog /var/log/apache2/access.log combined_with_time
   ErrorLog /var/log/apache2/error.log