From 5f193b72eb666755151faf15b71c4ffc45090745 Mon Sep 17 00:00:00 2001 From: Malfurious Date: Sun, 7 Aug 2022 01:09:35 -0400 Subject: Add cgit docker image Apache webserver (httpd) is setup minimally to host cgit on a website (sub)domain root. cgitrc config file is based on that from my previous installation, in my personal website. Signed-off-by: Malfurious --- docker/httpd.conf | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 docker/httpd.conf (limited to 'docker/httpd.conf') diff --git a/docker/httpd.conf b/docker/httpd.conf new file mode 100644 index 0000000..50f88aa --- /dev/null +++ b/docker/httpd.conf @@ -0,0 +1,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 + + + AllowOverride None + Require all denied + + + + AllowOverride None + Options ExecCGI FollowSymlinks + Require all granted + + +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/" -- cgit v1.2.3