diff options
author | Leonard Kugis <leonard@kug.is> | 2025-09-17 18:38:37 +0200 |
---|---|---|
committer | Leonard Kugis <leonard@kug.is> | 2025-09-17 18:38:37 +0200 |
commit | 66e96ee1d5a26445603660e805717545eb97ccce (patch) | |
tree | 54c5c0a134ebfd8ec190f8b896936a28704a17d9 | |
parent | 601d7c8501e37dd68bab2acb61235cb14ae01a82 (diff) | |
download | cgithub-66e96ee1d5a26445603660e805717545eb97ccce.tar.gz |
apache.conf: Making '/' as virtual root directory
-rw-r--r-- | apache.conf | 20 |
1 files 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 <VirtualHost *> DocumentRoot /var/www/html - <Directory "/var/www/html/"> + + Alias /cgit-css/ "/var/www/html/cgit-css/" + <Directory "/var/www/html/cgit-css"> Require all granted - Header set Cache-Control "public, max-age=3600" + Options -Indexes + AllowOverride None </Directory> - <Directory "/usr/lib/cgit/"> + + ScriptAlias / "/usr/lib/cgit/cgit.cgi/" + <Directory "/usr/lib/cgit"> Require all granted - Header set Cache-Control "private" + Options +ExecCGI -Indexes + AllowOverride None </Directory> - - RedirectRelative On - RedirectMatch 302 ^/(cgit)?$ /cgit/ - ScriptAlias /cgit/ "/usr/lib/cgit/cgit.cgi/" - - IncludeOptional /mnt/apache.conf </VirtualHost> |