From 66e96ee1d5a26445603660e805717545eb97ccce Mon Sep 17 00:00:00 2001 From: Leonard Kugis Date: Wed, 17 Sep 2025 18:38:37 +0200 Subject: apache.conf: Making '/' as virtual root directory --- apache.conf | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/apache.conf b/apache.conf index 57a9d9d..37049d2 100644 --- a/apache.conf +++ b/apache.conf @@ -2,18 +2,18 @@ ScriptSock ${APACHE_RUN_DIR}/cgi.sock DocumentRoot /var/www/html - + + Alias /cgit-css/ "/var/www/html/cgit-css/" + Require all granted - Header set Cache-Control "public, max-age=3600" + Options -Indexes + AllowOverride None - + + ScriptAlias / "/usr/lib/cgit/cgit.cgi/" + Require all granted - Header set Cache-Control "private" + Options +ExecCGI -Indexes + AllowOverride None - - RedirectRelative On - RedirectMatch 302 ^/(cgit)?$ /cgit/ - ScriptAlias /cgit/ "/usr/lib/cgit/cgit.cgi/" - - IncludeOptional /mnt/apache.conf -- cgit v1.2.3