summaryrefslogtreecommitdiffstats
path: root/cgit/httpd.conf
blob: 50f88aa2c0d4d6374a52d6a4021e087c94cfe840 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# https://httpd.apache.org/docs/current/
# https://httpd.apache.org/docs/current/mod/directives.html

LoadModule alias_module modules/mod_alias.so
LoadModule authz_core_module modules/mod_authz_core.so
LoadModule cgid_module modules/mod_cgid.so
LoadModule mpm_event_module modules/mod_mpm_event.so
LoadModule unixd_module modules/mod_unixd.so

ServerRoot "/etc/httpd"
ServerAdmin webmaster@example.com
ServerName localhost
Listen 80
User http
Group http

ErrorLog "/var/log/httpd/error_log"
LogLevel warn

<Directory "/">
    AllowOverride None
    Require all denied
</Directory>

<Directory "/usr/share/webapps/cgit/">
    AllowOverride None
    Options ExecCGI FollowSymlinks
    Require all granted
</Directory>

Alias /cgit.css "/usr/share/webapps/cgit/cgit.css"
Alias /cgit.png "/usr/share/webapps/cgit/cgit.png"
Alias /favicon.ico "/usr/share/webapps/cgit/favicon.ico"

ScriptAlias / "/usr/share/webapps/cgit/cgit.cgi/"