summaryrefslogtreecommitdiffstats
path: root/development/cgit/config/cgit-httpd.conf
diff options
context:
space:
mode:
author Robby Workman2013-11-25 03:17:01 +0100
committer Robby Workman2013-11-25 21:08:19 +0100
commit1d048cb81c1eaeac61ee151bb9fa2458870024c3 (patch)
treefb682c80bea61fcfacadab41aba49f24def32dd3 /development/cgit/config/cgit-httpd.conf
parent2d46d325edead9a0adefc8f508377be0c8a00436 (diff)
downloadslackbuilds-1d048cb81c1eaeac61ee151bb9fa2458870024c3.tar.gz
development/cgit: Fixes for httpd-2.4.x and allow custom DOCROOT
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'development/cgit/config/cgit-httpd.conf')
-rw-r--r--development/cgit/config/cgit-httpd.conf15
1 files changed, 7 insertions, 8 deletions
diff --git a/development/cgit/config/cgit-httpd.conf b/development/cgit/config/cgit-httpd.conf
index a579174fd0..4d713503be 100644
--- a/development/cgit/config/cgit-httpd.conf
+++ b/development/cgit/config/cgit-httpd.conf
@@ -8,18 +8,17 @@
#
# AddHandler cgi-script .cgi
-<Directory /var/www/cgi-bin>
+<Directory @DOCROOT@/cgi-bin>
AllowOverride None
- Order allow,deny
- Allow from all
+ Require all granted
</Directory>
## Version 1 (default): under /cgi-bin/cgit.cgi address
-#ScriptAlias /cgi-bin/cgit.cgi /var/www/cgi-bin/cgit.cgi
-#Alias /cgit/ /var/www/cgi-bin/
+#ScriptAlias /cgi-bin/cgit.cgi @DOCROOT@/cgi-bin/cgit.cgi
+#Alias /cgit/ @DOCROOT@/cgi-bin/
#<Location /cgit/cgit.cgi>
# Options FollowSymlinks ExecCGI
-# Allow from All
+# Require all granted
#</Location>
#RewriteEngine on
#RewriteCond %{REQUEST_FILENAME} !-f
@@ -32,10 +31,10 @@
SetEnv CGIT_CONFIG /etc/cgitrc
Options FollowSymlinks ExecCGI
DirectoryIndex cgit.cgi
- DocumentRoot /var/www/cgi-bin
+ DocumentRoot @DOCROOT@/cgi-bin
<Location />
Options ExecCGI
- Allow from All
+ Require all granted
</Location>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f