From 65abdee504ed8931dd6d18bdab4670e3edcba1e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Fri, 16 Jul 2021 00:49:18 +0200 Subject: httpd.conf: Enable CGI for cgit --- usr/pkg/etc/httpd/httpd.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr/pkg/etc') diff --git a/usr/pkg/etc/httpd/httpd.conf b/usr/pkg/etc/httpd/httpd.conf index 5bbb314..80813dc 100644 --- a/usr/pkg/etc/httpd/httpd.conf +++ b/usr/pkg/etc/httpd/httpd.conf @@ -98,7 +98,7 @@ LoadModule status_module lib/httpd/mod_status.so LoadModule autoindex_module lib/httpd/mod_autoindex.so #LoadModule asis_module lib/httpd/mod_asis.so #LoadModule info_module lib/httpd/mod_info.so -#LoadModule cgid_module lib/httpd/mod_cgid.so +LoadModule cgid_module lib/httpd/mod_cgid.so #LoadModule dav_fs_module lib/httpd/mod_dav_fs.so #LoadModule dav_lock_module lib/httpd/mod_dav_lock.so #LoadModule vhost_alias_module lib/httpd/mod_vhost_alias.so @@ -288,6 +288,7 @@ vhost block(ServerName => 'git.ankarstrom.se', Directory => block('/var/www/git/htdocs' => block( DirectoryIndex => 'cgit.cgi', Options => '+ExecCGI', + AddHandler => 'cgi-script .cgi', RewriteEngine => 'On', RewriteCond => '%{REQUEST_FILENAME} !-f', RewriteCond => '%{REQUEST_FILENAME} !-d', -- cgit v1.2.3