From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-5.7 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,RCVD_IN_SORBS_SPAM, RP_MATCHES_RCVD shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id A29C81FF40 for ; Wed, 30 Nov 2016 21:24:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753869AbcK3VYm (ORCPT ); Wed, 30 Nov 2016 16:24:42 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:34313 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751255AbcK3VYk (ORCPT ); Wed, 30 Nov 2016 16:24:40 -0500 Received: by mail-wm0-f68.google.com with SMTP id g23so31368032wme.1 for ; Wed, 30 Nov 2016 13:24:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ads6E8+isMbxJ492Qfu/FOpm2r38Kq4tTKmTIQg244A=; b=j+huv7uKQ/jMZw0HZIyFkhHrXhA7ZuByidSNGS3T6X1S04JlpJIKqwTT81T0O07H42 0uT7M60EAfVZHGMIFV7GQC4BUKi2VksdcNygClOa1ekiFPcJWABvzIOVrPSDML+Pf5Nw LlvLPuaXEYS8ovb+nm/qWA2MLwkW+SdI1W+XvThLOmg711gLMAQ+jEisMbsnQ5vMiHun b9iYTPziGk7BKblyQcau2TXv8lrzJf83dWWqDEONSy2Rmy2yZmKtBPL7HZtCieu1zq2F J1EiZWMO6WhB9Y5FustnF5LRgh6BdZm2wwGv42LAWpdO2yE9xVVahJIhA/h/DlbPtFnX kh5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ads6E8+isMbxJ492Qfu/FOpm2r38Kq4tTKmTIQg244A=; b=ZwKIl4ZM6PLd2tN16pGWjytlEoKB9CkMq0JCsH4Y4Hzs+Tb6gqDNK3bv0pXwRqnVxV KDE6YpqRhP1JND/mytirdF1S4cm9QcH6Q8PQInhB+zQjp+nW34gBUl4pLl3cYp60lIm+ cxEe0B0eZvAd0Wmc2OY6Nj7DFq6zfLvIZXTeJ0/UhYVU5Dkr7wc6moovfl+BviSKC/2n yvW8m1lof+FbUoZ1WRGF4sEYe5bACey1l652Pz2efa04wekODTHhb0aqj6ZjPZaDiA1A tfug0BA3eMzzde7fFpIqrDv/qD/acezgTmjSqWhUZD19lfuuBjf87bYVYbeCTI2ej1yq 2utg== X-Gm-Message-State: AKaTC03hWjzDjLqchJF1hJi0yluc0P35RDDUm1iropP4tmJUv7E+jb6Hw2prU6iPSNJH3g== X-Received: by 10.28.157.137 with SMTP id g131mr28180639wme.29.1480539913677; Wed, 30 Nov 2016 13:05:13 -0800 (PST) Received: from localhost.localdomain (cha92-h01-128-78-31-246.dsl.sta.abo.bbox.fr. [128.78.31.246]) by smtp.gmail.com with ESMTPSA id d64sm9802427wmh.3.2016.11.30.13.05.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 30 Nov 2016 13:05:12 -0800 (PST) From: Christian Couder X-Google-Original-From: Christian Couder To: git@vger.kernel.org Cc: Junio C Hamano , Jeff King , Nguyen Thai Ngoc Duy , Mike Hommey , Lars Schneider , Eric Wong , Christian Couder Subject: [RFC/PATCH v3 14/16] lib-httpd: add apache-e-odb.conf Date: Wed, 30 Nov 2016 22:04:18 +0100 Message-Id: <20161130210420.15982-15-chriscool@tuxfamily.org> X-Mailer: git-send-email 2.11.0.rc2.37.geb49ca6 In-Reply-To: <20161130210420.15982-1-chriscool@tuxfamily.org> References: <20161130210420.15982-1-chriscool@tuxfamily.org> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org This is an apache config file to test external object databases. It uses the upload.sh and list.sh cgi that have been added previously to make apache store external objects. Signed-off-by: Christian Couder --- t/lib-httpd/apache-e-odb.conf | 214 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 214 insertions(+) create mode 100644 t/lib-httpd/apache-e-odb.conf diff --git a/t/lib-httpd/apache-e-odb.conf b/t/lib-httpd/apache-e-odb.conf new file mode 100644 index 0000000000..19a1540c82 --- /dev/null +++ b/t/lib-httpd/apache-e-odb.conf @@ -0,0 +1,214 @@ +ServerName dummy +PidFile httpd.pid +DocumentRoot www +LogFormat "%h %l %u %t \"%r\" %>s %b" common +CustomLog access.log common +ErrorLog error.log + + LoadModule log_config_module modules/mod_log_config.so + + + LoadModule alias_module modules/mod_alias.so + + + LoadModule cgi_module modules/mod_cgi.so + + + LoadModule env_module modules/mod_env.so + + + LoadModule rewrite_module modules/mod_rewrite.so + + + LoadModule version_module modules/mod_version.so + + + LoadModule headers_module modules/mod_headers.so + + + +LockFile accept.lock + + + + + LoadModule auth_module modules/mod_auth.so + + + += 2.1> + + LoadModule auth_basic_module modules/mod_auth_basic.so + + + LoadModule authn_file_module modules/mod_authn_file.so + + + LoadModule authz_user_module modules/mod_authz_user.so + + + LoadModule authz_host_module modules/mod_authz_host.so + + + += 2.4> + + LoadModule authn_core_module modules/mod_authn_core.so + + + LoadModule authz_core_module modules/mod_authz_core.so + + + LoadModule access_compat_module modules/mod_access_compat.so + + + LoadModule mpm_prefork_module modules/mod_mpm_prefork.so + + + LoadModule unixd_module modules/mod_unixd.so + + + +PassEnv GIT_VALGRIND +PassEnv GIT_VALGRIND_OPTIONS +PassEnv GNUPGHOME +PassEnv ASAN_OPTIONS +PassEnv GIT_TRACE +PassEnv GIT_CONFIG_NOSYSTEM + +Alias /dumb/ www/ +Alias /auth/dumb/ www/auth/dumb/ + + + SetEnv GIT_EXEC_PATH ${GIT_EXEC_PATH} + SetEnv GIT_HTTP_EXPORT_ALL + + + SetEnv GIT_EXEC_PATH ${GIT_EXEC_PATH} + + + SetEnv GIT_EXEC_PATH ${GIT_EXEC_PATH} + SetEnv GIT_HTTP_EXPORT_ALL + SetEnv GIT_COMMITTER_NAME "Custom User" + SetEnv GIT_COMMITTER_EMAIL custom@example.com + + + SetEnv GIT_EXEC_PATH ${GIT_EXEC_PATH} + SetEnv GIT_HTTP_EXPORT_ALL + SetEnv GIT_NAMESPACE ns + + + SetEnv GIT_EXEC_PATH ${GIT_EXEC_PATH} + SetEnv GIT_HTTP_EXPORT_ALL + Header set Set-Cookie name=value + + + SetEnv GIT_EXEC_PATH ${GIT_EXEC_PATH} + SetEnv GIT_HTTP_EXPORT_ALL + +ScriptAlias /upload/ upload.sh/ +ScriptAlias /list/ list.sh/ + + Options FollowSymlinks + + + Options ExecCGI + + + Options ExecCGI + + + Options ExecCGI + + +RewriteEngine on +RewriteRule ^/smart-redir-perm/(.*)$ /smart/$1 [R=301] +RewriteRule ^/smart-redir-temp/(.*)$ /smart/$1 [R=302] +RewriteRule ^/smart-redir-auth/(.*)$ /auth/smart/$1 [R=301] +RewriteRule ^/smart-redir-limited/(.*)/info/refs$ /smart/$1/info/refs [R=301] +RewriteRule ^/ftp-redir/(.*)$ ftp://localhost:1000/$1 [R=302] + +RewriteRule ^/loop-redir/x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-(.*) /$1 [R=302] +RewriteRule ^/loop-redir/(.*)$ /loop-redir/x-$1 [R=302] + +# Apache 2.2 does not understand , so we use RewriteCond. +# And as RewriteCond does not allow testing for non-matches, we match +# the desired case first (one has abra, two has cadabra), and let it +# pass by marking the RewriteRule as [L], "last rule, do not process +# any other matching RewriteRules after this"), and then have another +# RewriteRule that matches all other cases and lets them fail via '[F]', +# "fail the request". +RewriteCond %{HTTP:x-magic-one} =abra +RewriteCond %{HTTP:x-magic-two} =cadabra +RewriteRule ^/smart_headers/.* - [L] +RewriteRule ^/smart_headers/.* - [F] + + +LoadModule ssl_module modules/mod_ssl.so + +SSLCertificateFile httpd.pem +SSLCertificateKeyFile httpd.pem +SSLRandomSeed startup file:/dev/urandom 512 +SSLRandomSeed connect file:/dev/urandom 512 +SSLSessionCache none +SSLMutex file:ssl_mutex +SSLEngine On + + + + AuthType Basic + AuthName "git-auth" + AuthUserFile passwd + Require valid-user + + + + AuthType Basic + AuthName "git-auth" + AuthUserFile passwd + Require valid-user + + + + AuthType Basic + AuthName "git-auth" + AuthUserFile passwd + Require valid-user + + +RewriteCond %{QUERY_STRING} service=git-receive-pack [OR] +RewriteCond %{REQUEST_URI} /git-receive-pack$ +RewriteRule ^/half-auth-complete/ - [E=AUTHREQUIRED:yes] + + + Order Deny,Allow + Deny from env=AUTHREQUIRED + + AuthType Basic + AuthName "Git Access" + AuthUserFile passwd + Require valid-user + Satisfy Any + + + + LoadModule dav_module modules/mod_dav.so + LoadModule dav_fs_module modules/mod_dav_fs.so + + DAVLockDB DAVLock + + Dav on + + + Dav on + + + + + LoadModule dav_svn_module modules/mod_dav_svn.so + + + DAV svn + SVNPath "${LIB_HTTPD_SVNPATH}" + + -- 2.11.0.rc2.37.geb49ca6