diff options
Diffstat (limited to 'cgit/httpd-cgit.conf')
-rw-r--r-- | cgit/httpd-cgit.conf | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/cgit/httpd-cgit.conf b/cgit/httpd-cgit.conf new file mode 100644 index 0000000..9cc2153 --- /dev/null +++ b/cgit/httpd-cgit.conf @@ -0,0 +1,32 @@ +ServerName localhost + +# Next two lines changed for new document root +DocumentRoot /srv/git +<Directory "/srv/git"> + AllowOverride None + Options ExecCGI FollowSymLinks + Require all granted +</Directory> + +# cgid module is required to run the cgit binary +LoadModule cgid_module lib/httpd/modules/mod_cgid.so +<IfModule cgid_module> + ScriptSock /var/run/cgid.sock +</IfModule> + +# Path to cgit stylesheet, graphics +Alias /cgit-data /usr/share/cgit +<Directory "/usr/share/cgit"> + AllowOverride None + Options None + Require all granted +</Directory> + +# Path to cgit binary +# Next line changed +ScriptAlias / /usr/libexec/cgit/cgi-bin/cgit/ +<Directory "/usr/libexec/cgit/cgi-bin"> + AllowOverride None + Options None + Require all granted +</Directory> |