1
+ ServerRoot "/usr/local/apache2"
2
+ Listen 0 .0 .0 .0 :8080
3
+
4
+ LoadModule mpm_event_module modules/mod_mpm_event.so
5
+ LoadModule unixd_module modules/mod_unixd.so
6
+ LoadModule authz_core_module modules/mod_authz_core.so
7
+ LoadModule authn_core_module modules/mod_authn_core.so
8
+ LoadModule auth_basic_module modules/mod_auth_basic.so
9
+ LoadModule authn_file_module modules/mod_authn_file.so
10
+ LoadModule authz_user_module modules/mod_authz_user.so
11
+ LoadModule alias_module modules/mod_alias.so
12
+ LoadModule cgi_module modules/mod_cgi.so
13
+ LoadModule env_module modules/mod_env.so
14
+ LoadModule dir_module modules/mod_dir.so
15
+ LoadModule mime_module modules/mod_mime.so
16
+ LoadModule log_config_module modules/mod_log_config.so
17
+
18
+ User www-data
19
+ Group www-data
20
+
21
+ ServerName git-server
22
+
23
+ # Git HTTP Backend Configuration - Serve directly from root
24
+ ScriptAlias / "/usr/lib/git-core/git-http-backend/"
25
+ SetEnv GIT_PROJECT_ROOT "/var/git"
26
+ SetEnv GIT_HTTP_EXPORT_ALL
27
+
28
+ <LocationMatch "^/.+\.git" >
29
+ AuthType Basic
30
+ AuthName "Git Access"
31
+ AuthUserFile "/usr/local/apache2/conf/.htpasswd"
32
+ Require valid-user
33
+ </LocationMatch >
34
+
35
+ # Error and access logging
36
+ ErrorLog /proc/self/fd/2
37
+ LogLevel info
38
+
39
+ # Define log formats
40
+ LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer }i\" \"%{User-Agent }i\"" combined
41
+ LogFormat "%h %l %u %t \"%r\" %>s %b" common
42
+ LogFormat "%{Referer }i -> %U" referer
43
+ LogFormat "%{User-agent }i" agent
44
+
45
+ # Use combined format for detailed request logging
46
+ CustomLog /proc/self/fd/1 combined
47
+
48
+ TypesConfig conf/mime.types
0 commit comments