aboutsummaryrefslogtreecommitdiffstats
path: root/httpd.conf
diff options
context:
space:
mode:
authorLibravatarLarge Libravatar Grégory Joubès <gregoryjoubesnetcourriercom>2020-11-03 16:29:12 +0100
committerLibravatarLarge Libravatar Grégory Joubès <gregoryjoubesnetcourriercom>2020-11-03 16:29:12 +0100
commit860fb6c4c8b1111a411e2587f394f2a9e8128716 (patch)
tree40743465de9596bdc9d7c960b38764d7741c2510 /httpd.conf
downloadcgit-oci-860fb6c4c8b1111a411e2587f394f2a9e8128716.tar.gz
cgit-oci-860fb6c4c8b1111a411e2587f394f2a9e8128716.tar.bz2
cgit-oci-860fb6c4c8b1111a411e2587f394f2a9e8128716.tar.lz
cgit-oci-860fb6c4c8b1111a411e2587f394f2a9e8128716.zip

Initial commit

Diffstat (limited to 'httpd.conf')
-rw-r--r--httpd.conf54
1 files changed, 54 insertions, 0 deletions
diff --git a/httpd.conf b/httpd.conf
new file mode 100644
index 0000000..dc6c934
--- /dev/null
+++ b/httpd.conf
@@ -0,0 +1,54 @@
+ServerRoot "/usr/local/apache2"
+
+# standard
+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
+
+# uncomment for htaccess
+LoadModule auth_basic_module modules/mod_auth_basic.so
+LoadModule authn_core_module modules/mod_authn_core.so
+LoadModule authn_file_module modules/mod_authn_file.so
+LoadModule authz_user_module modules/mod_authz_user.so
+
+Listen 80
+User daemon
+Group daemon
+
+ServerName localhost
+ServerAdmin root@localhost
+
+ErrorLog "logs/error_log"
+LogLevel warn
+
+LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
+LogFormat "%h %l %u %t \"%r\" %>s %b" common
+CustomLog "logs/access_log" combined
+
+AddHandler cgi-script .cgi
+AddDefaultCharset UTF-8
+TypesConfig conf/mime.types
+MIMEMagicFile conf/magic
+EnableSendfile on
+
+<Directory />
+ Require all denied
+</Directory>
+
+DocumentRoot "/var/www/htdocs/cgit"
+<Directory "/var/www/htdocs/cgit/">
+ DirectoryIndex cgit.cgi
+ AllowOverride All
+ Options +ExecCGI -FollowSymLinks
+ Require all granted
+</Directory>
+
+<Files ".ht*">
+ Require all denied
+</Files>