Merge branch 'gc/http-with-non-ascii-username-url' into maint
[git/git.git] / t / lib-httpd / apache.conf
1 ServerName dummy
2 LockFile accept.lock
3 PidFile httpd.pid
4 DocumentRoot www
5 LogFormat "%h %l %u %t \"%r\" %>s %b" common
6 CustomLog access.log common
7 ErrorLog error.log
8 <IfModule !mod_log_config.c>
9 LoadModule log_config_module modules/mod_log_config.so
10 </IfModule>
11 <IfModule !mod_alias.c>
12 LoadModule alias_module modules/mod_alias.so
13 </IfModule>
14 <IfModule !mod_cgi.c>
15 LoadModule cgi_module modules/mod_cgi.so
16 </IfModule>
17 <IfModule !mod_env.c>
18 LoadModule env_module modules/mod_env.so
19 </IfModule>
20 <IfModule !mod_rewrite.c>
21 LoadModule rewrite_module modules/mod_rewrite.so
22 </IFModule>
23 <IfModule !mod_version.c>
24 LoadModule version_module modules/mod_version.so
25 </IfModule>
26
27 <IfVersion < 2.1>
28 <IfModule !mod_auth.c>
29 LoadModule auth_module modules/mod_auth.so
30 </IfModule>
31 </IfVersion>
32
33 <IfVersion >= 2.1>
34 <IfModule !mod_auth_basic.c>
35 LoadModule auth_basic_module modules/mod_auth_basic.so
36 </IfModule>
37 <IfModule !mod_authn_file.c>
38 LoadModule authn_file_module modules/mod_authn_file.so
39 </IfModule>
40 <IfModule !mod_authz_user.c>
41 LoadModule authz_user_module modules/mod_authz_user.so
42 </IfModule>
43 </IfVersion>
44
45 Alias /dumb/ www/
46 Alias /auth/ www/auth/
47
48 <Location /smart/>
49 SetEnv GIT_EXEC_PATH ${GIT_EXEC_PATH}
50 SetEnv GIT_HTTP_EXPORT_ALL
51 </Location>
52 <Location /smart_noexport/>
53 SetEnv GIT_EXEC_PATH ${GIT_EXEC_PATH}
54 </Location>
55 ScriptAlias /smart/ ${GIT_EXEC_PATH}/git-http-backend/
56 ScriptAlias /smart_noexport/ ${GIT_EXEC_PATH}/git-http-backend/
57 <Directory ${GIT_EXEC_PATH}>
58 Options None
59 </Directory>
60 <Files ${GIT_EXEC_PATH}/git-http-backend>
61 Options ExecCGI
62 </Files>
63
64 RewriteEngine on
65 RewriteRule ^/smart-redir-perm/(.*)$ /smart/$1 [R=301]
66 RewriteRule ^/smart-redir-temp/(.*)$ /smart/$1 [R=302]
67
68 <IfDefine SSL>
69 LoadModule ssl_module modules/mod_ssl.so
70
71 SSLCertificateFile httpd.pem
72 SSLCertificateKeyFile httpd.pem
73 SSLRandomSeed startup file:/dev/urandom 512
74 SSLRandomSeed connect file:/dev/urandom 512
75 SSLSessionCache none
76 SSLMutex file:ssl_mutex
77 SSLEngine On
78 </IfDefine>
79
80 <Location /auth/>
81 AuthType Basic
82 AuthName "git-auth"
83 AuthUserFile passwd
84 Require valid-user
85 </Location>
86
87 <IfDefine DAV>
88 LoadModule dav_module modules/mod_dav.so
89 LoadModule dav_fs_module modules/mod_dav_fs.so
90
91 DAVLockDB DAVLock
92 <Location /dumb/>
93 Dav on
94 </Location>
95 </IfDefine>
96
97 <IfDefine SVN>
98 LoadModule dav_svn_module modules/mod_dav_svn.so
99
100 <Location /svn>
101 DAV svn
102 SVNPath svnrepo
103 </Location>
104 </IfDefine>