aboutsummaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-07-16 00:49:18 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-07-16 00:49:18 +0200
commit65abdee504ed8931dd6d18bdab4670e3edcba1e2 (patch)
tree60ca08c28872f597a995f00435cc2178d8b29909 /usr
parent8671f50636c56a4a6a254ba5b27595379f49d059 (diff)
downloadrbsd-65abdee504ed8931dd6d18bdab4670e3edcba1e2.tar.gz
httpd.conf: Enable CGI for cgit
Diffstat (limited to 'usr')
-rw-r--r--usr/pkg/etc/httpd/httpd.conf3
1 files changed, 2 insertions, 1 deletions
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',