aboutsummaryrefslogtreecommitdiffstats
path: root/apache.conf
diff options
context:
space:
mode:
authorLeonard Kugis <leonard@kug.is>2025-09-17 18:20:38 +0200
committerLeonard Kugis <leonard@kug.is>2025-09-17 18:20:38 +0200
commitc48fbfb7b85d9c5264be1d68063b8ac3af9e2899 (patch)
tree97c7d27e07392ba8ce303d0e917ee44972e94233 /apache.conf
downloadcgithub-c48fbfb7b85d9c5264be1d68063b8ac3af9e2899.tar.gz
Initial commit
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>