From 860fb6c4c8b1111a411e2587f394f2a9e8128716 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Joub=C3=A8s?= Date: Tue, 3 Nov 2020 16:29:12 +0100 Subject: Initial commit --- httpd.conf | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 httpd.conf (limited to 'httpd.conf') 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 + + + Require all denied + + +DocumentRoot "/var/www/htdocs/cgit" + + DirectoryIndex cgit.cgi + AllowOverride All + Options +ExecCGI -FollowSymLinks + Require all granted + + + + Require all denied + -- cgit v1.2.3