Fix username and password extraction from HTTP URLs
[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_version.c>
21 LoadModule version_module modules/mod_version.so
22 </IfModule>
23
24 <IfVersion < 2.1>
25 <IfModule !mod_auth.c>
26 LoadModule auth_module modules/mod_auth.so
27 </IfModule>
28 </IfVersion>
29
30 <IfVersion >= 2.1>
31 <IfModule !mod_auth_basic.c>
32 LoadModule auth_basic_module modules/mod_auth_basic.so
33 </IfModule>
34 <IfModule !mod_authn_file.c>
35 LoadModule authn_file_module modules/mod_authn_file.so
36 </IfModule>
37 <IfModule !mod_authz_user.c>
38 LoadModule authz_user_module modules/mod_authz_user.so
39 </IfModule>
40 </IfVersion>
41
42 Alias /dumb/ www/
43 Alias /auth/ www/auth/
44
45 <Location /smart/>
46 SetEnv GIT_EXEC_PATH ${GIT_EXEC_PATH}
47 SetEnv GIT_HTTP_EXPORT_ALL
48 </Location>
49 <Location /smart_noexport/>
50 SetEnv GIT_EXEC_PATH ${GIT_EXEC_PATH}
51 </Location>
52 ScriptAlias /smart/ ${GIT_EXEC_PATH}/git-http-backend/
53 ScriptAlias /smart_noexport/ ${GIT_EXEC_PATH}/git-http-backend/
54 <Directory ${GIT_EXEC_PATH}>
55 Options None
56 </Directory>
57 <Files ${GIT_EXEC_PATH}/git-http-backend>
58 Options ExecCGI
59 </Files>
60
61 <IfDefine SSL>
62 LoadModule ssl_module modules/mod_ssl.so
63
64 SSLCertificateFile httpd.pem
65 SSLCertificateKeyFile httpd.pem
66 SSLRandomSeed startup file:/dev/urandom 512
67 SSLRandomSeed connect file:/dev/urandom 512
68 SSLSessionCache none
69 SSLMutex file:ssl_mutex
70 SSLEngine On
71 </IfDefine>
72
73 <Location /auth/>
74 AuthType Basic
75 AuthName "git-auth"
76 AuthUserFile passwd
77 Require valid-user
78 </Location>
79
80 <IfDefine DAV>
81 LoadModule dav_module modules/mod_dav.so
82 LoadModule dav_fs_module modules/mod_dav_fs.so
83
84 DAVLockDB DAVLock
85 <Location /dumb/>
86 Dav on
87 </Location>
88 </IfDefine>
89
90 <IfDefine SVN>
91 LoadModule dav_svn_module modules/mod_dav_svn.so
92
93 <Location /svn>
94 DAV svn
95 SVNPath svnrepo
96 </Location>
97 </IfDefine>