aboutsummaryrefslogtreecommitdiffstats
path: root/apache.conf
diff options
context:
space:
mode:
Diffstat (limited to 'apache.conf')
-rw-r--r--apache.conf19
1 files changed, 19 insertions, 0 deletions
diff --git a/apache.conf b/apache.conf
new file mode 100644
index 0000000..57a9d9d
--- /dev/null
+++ b/apache.conf
@@ -0,0 +1,19 @@
+ScriptSock ${APACHE_RUN_DIR}/cgi.sock
+
+<VirtualHost *>
+ DocumentRoot /var/www/html
+ <Directory "/var/www/html/">
+ Require all granted
+ Header set Cache-Control "public, max-age=3600"
+ </Directory>
+ <Directory "/usr/lib/cgit/">
+ Require all granted
+ Header set Cache-Control "private"
+ </Directory>
+
+ RedirectRelative On
+ RedirectMatch 302 ^/(cgit)?$ /cgit/
+ ScriptAlias /cgit/ "/usr/lib/cgit/cgit.cgi/"
+
+ IncludeOptional /mnt/apache.conf
+</VirtualHost>