blob: d99bd92aa2646b69f9c255aabff7dd79a2ea09e6 (
plain)
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
36
37
38
39
40
41
42
43
44
45
|
##
## Apache Server Configuration
##
ServerRoot /etc/httpd
#
# Load Standard Modules
LoadModule authz_core_module modules/mod_authz_core.so
LoadModule unixd_module modules/mod_unixd.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule mime_module modules/mod_mime.so
LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule dir_module modules/mod_dir.so
#
# Server config
Listen 0.0.0.0:80
ServerName localhost
ServerAdmin root@localhost
EnableSendFile on
AddDefaultCharset UTF-8
TypesConfig /etc/mime.types
MIMEMagicFile conf/magic
<Directory />
Require all denied
</Directory>
DocumentRoot "/srv/www/htdocs/cgit"
<Directory "/srv/www/htdocs/cgit/">
DirectoryIndex cgit.cgi
AddHandler cgi-script .cgi
AllowOverride None
Options +ExecCGI -FollowSymLinks
Require all granted
</Directory>
# Future proof
<Files ".ht">
Require all denied
</Files>
|