aboutsummaryrefslogtreecommitdiff
path: root/www/server-config/apache2/conf-available/serve-cgi-bin.conf
diff options
context:
space:
mode:
Diffstat (limited to 'www/server-config/apache2/conf-available/serve-cgi-bin.conf')
-rw-r--r--www/server-config/apache2/conf-available/serve-cgi-bin.conf20
1 files changed, 20 insertions, 0 deletions
diff --git a/www/server-config/apache2/conf-available/serve-cgi-bin.conf b/www/server-config/apache2/conf-available/serve-cgi-bin.conf
new file mode 100644
index 0000000..b02782d
--- /dev/null
+++ b/www/server-config/apache2/conf-available/serve-cgi-bin.conf
@@ -0,0 +1,20 @@
+<IfModule mod_alias.c>
+ <IfModule mod_cgi.c>
+ Define ENABLE_USR_LIB_CGI_BIN
+ </IfModule>
+
+ <IfModule mod_cgid.c>
+ Define ENABLE_USR_LIB_CGI_BIN
+ </IfModule>
+
+ <IfDefine ENABLE_USR_LIB_CGI_BIN>
+ ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
+ <Directory "/usr/lib/cgi-bin">
+ AllowOverride None
+ Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
+ Require all granted
+ </Directory>
+ </IfDefine>
+</IfModule>
+
+# vim: syntax=apache ts=4 sw=4 sts=4 sr noet