File tree 3 files changed +48
-4
lines changed
3 files changed +48
-4
lines changed Original file line number Diff line number Diff line change 6
6
Require ip 127.0.0.1
7
7
</Directory>
8
8
9
+ Alias /git/static /usr/share/gitweb/static
10
+ ScriptAliasMatch \
11
+ "(?x)^/git/(.*/(HEAD | \
12
+ info/refs | \
13
+ objects/(info/[^/]+ | \
14
+ [0-9a-f]{2}/[0-9a-f]{38} | \
15
+ pack/pack-[0-9a-f]{40}\.(pack|idx)) | \
16
+ git-upload-pack))$" \
17
+ /usr/lib/git-core/git-http-backend/$1
18
+ ScriptAlias /git /usr/share/gitweb/gitweb.cgi
19
+ <Directory /usr/share/gitweb>
20
+ Options +ExecCGI +FollowSymLinks +SymLinksIfOwnerMatch
21
+ Require all granted
22
+ AddHandler cgi-script cgi
23
+ DirectoryIndex gitweb.cgi
24
+ </Directory>
25
+ <Directory /usr/lib/git-core/>
26
+ Options +ExecCGI
27
+ SetEnv GIT_PROJECT_ROOT /var/lib/git
28
+ Require all granted
29
+ </Directory>
30
+
9
31
RewriteEngine on
10
32
RewriteRule ^/images/.* - [L]
11
33
RewriteRule .* https://davidsherenowitsa.party%{REQUEST_URI}
Original file line number Diff line number Diff line change 22
22
Require user travis-user
23
23
</Directory>
24
24
25
+ Alias /git/static /usr/share/gitweb/static
26
+ ScriptAliasMatch \
27
+ "(?x)^/git/(.*/(HEAD | \
28
+ info/refs | \
29
+ objects/(info/[^/]+ | \
30
+ [0-9a-f]{2}/[0-9a-f]{38} | \
31
+ pack/pack-[0-9a-f]{40}\.(pack|idx)) | \
32
+ git-upload-pack))$" \
33
+ /usr/lib/git-core/git-http-backend/$1
34
+ ScriptAlias /git /usr/share/gitweb/gitweb.cgi
35
+ <Directory /usr/share/gitweb>
36
+ Options +ExecCGI +FollowSymLinks +SymLinksIfOwnerMatch
37
+ Require all granted
38
+ AddHandler cgi-script cgi
39
+ DirectoryIndex gitweb.cgi
40
+ </Directory>
41
+ <Directory /usr/lib/git-core/>
42
+ Options +ExecCGI
43
+ SetEnv GIT_PROJECT_ROOT /var/lib/git
44
+ Require all granted
45
+ </Directory>
46
+
25
47
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
26
48
<Directory "/usr/lib/cgi-bin">
27
49
AllowOverride None
Original file line number Diff line number Diff line change @@ -14,16 +14,16 @@ $git_temp = "/tmp";
14
14
#$projects_list = $projectroot;
15
15
16
16
# stylesheet to use
17
- # @stylesheets = ("static/gitweb.css");
17
+ @stylesheets = ("git/ static/gitweb.css");
18
18
19
19
# javascript code for gitweb
20
- # $javascript = "static/gitweb.js";
20
+ $javascript = "git/ static/gitweb.js";
21
21
22
22
# logo to use
23
- # $logo = "static/git-logo.png";
23
+ $logo = "git/ static/git-logo.png";
24
24
25
25
# the 'favicon'
26
- # $favicon = "static/git-favicon.png";
26
+ $favicon = "git/ static/git-favicon.png";
27
27
28
28
# git-diff-tree(1) options to use for generated patches
29
29
#@diff_opts = ("-M");
You can’t perform that action at this time.
0 commit comments