Prepare for 1.7.3.4
[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
24 Alias /dumb/ www/
25
26 <Location /smart/>
27 SetEnv GIT_EXEC_PATH ${GIT_EXEC_PATH}
28 SetEnv GIT_HTTP_EXPORT_ALL
29 </Location>
30 <Location /smart_noexport/>
31 SetEnv GIT_EXEC_PATH ${GIT_EXEC_PATH}
32 </Location>
33 ScriptAlias /smart/ ${GIT_EXEC_PATH}/git-http-backend/
34 ScriptAlias /smart_noexport/ ${GIT_EXEC_PATH}/git-http-backend/
35 <Directory ${GIT_EXEC_PATH}>
36 Options None
37 </Directory>
38 <Files ${GIT_EXEC_PATH}/git-http-backend>
39 Options ExecCGI
40 </Files>
41
42 RewriteEngine on
43 RewriteRule ^/smart-redir-perm/(.*)$ /smart/$1 [R=301]
44 RewriteRule ^/smart-redir-temp/(.*)$ /smart/$1 [R=302]
45
46 <IfDefine SSL>
47 LoadModule ssl_module modules/mod_ssl.so
48
49 SSLCertificateFile httpd.pem
50 SSLCertificateKeyFile httpd.pem
51 SSLRandomSeed startup file:/dev/urandom 512
52 SSLRandomSeed connect file:/dev/urandom 512
53 SSLSessionCache none
54 SSLMutex file:ssl_mutex
55 SSLEngine On
56 </IfDefine>
57
58 <IfDefine DAV>
59 LoadModule dav_module modules/mod_dav.so
60 LoadModule dav_fs_module modules/mod_dav_fs.so
61
62 DAVLockDB DAVLock
63 <Location /dumb/>
64 Dav on
65 </Location>
66 </IfDefine>
67
68 <IfDefine SVN>
69 LoadModule dav_svn_module modules/mod_dav_svn.so
70
71 <Location /svn>
72 DAV svn
73 SVNPath svnrepo
74 </Location>
75 </IfDefine>