Updated git.pm (updated httpd configuration).
authorZoltán Felleg <zoltan.felleg@userrendszerhaz.hu>
Wed, 6 Apr 2022 12:37:12 +0000 (14:37 +0200)
committerZoltán Felleg <zoltan.felleg@userrendszerhaz.hu>
Wed, 6 Apr 2022 12:37:12 +0000 (14:37 +0200)
sources/git.pm/c3d/postinstall/install-data/etc/httpd/conf.d/git.conf

index b604938693bcec9b5fdf93bae622ca33e6ddf134..e1a99799027498b9a06c7cb112087d14eedebdc2 100644 (file)
@@ -7,14 +7,14 @@
 
     RewriteEngine on
 
-    RewriteCond "%{HTTP_USER_AGENT}" "^git"
+    RewriteCond "%{HTTP_USER_AGENT}" "^(git|JGit)"
     RewriteRule "^/git/" "-" [END]
-    RewriteCond "%{HTTP_USER_AGENT}" "^git"
+    RewriteCond "%{HTTP_USER_AGENT}" "^(git|JGit)"
     RewriteRule "^/(.*)$" "/git/$1" [END,PT]
 
-    RewriteCond "%{HTTP_USER_AGENT}" "!^git"
+    RewriteCond "%{HTTP_USER_AGENT}" "!^(git|JGit)"
     RewriteRule "^/browser/" "-" [END]
-    RewriteCond "%{HTTP_USER_AGENT}" "!^git"
+    RewriteCond "%{HTTP_USER_AGENT}" "!^(git|JGit)"
     RewriteRule "^/(.*)$" "/browser/$1" [END,PT]
 
     Alias /browser/ /git/gitweb/
         <If "%{QUERY_STRING} =~ /^p=mediacube.git/">
             Require ldap-user dvasary osweidan rrendek
         </If>
-        <ElseIf "%{QUERY_STRING} =~ /^p=test.git/">
+        <ElseIf "%{QUERY_STRING} =~ /^p=user-lxc.git/">
+            Require ldap-user zfelleg
+        </ElseIf>
+        <ElseIf "%{QUERY_STRING} =~ /^p=user-ssh.git/">
             Require ldap-user zfelleg
         </ElseIf>
         <Else>
         <If "%{REQUEST_URI} =~ m#^/git/mediacube.git#">
             Require ldap-user dvasary osweidan rrendek
         </If>
-        <ElseIf "%{REQUEST_URI} =~ m#^/git/test.git#">
+        <ElseIf "%{REQUEST_URI} =~ m#^/git/user-lxc.git#">
+            Require ldap-user zfelleg
+        </ElseIf>
+        <ElseIf "%{REQUEST_URI} =~ m#^/git/user-ssh.git#">
             Require ldap-user zfelleg
         </ElseIf>
         <Else>