diff options
Diffstat (limited to 'apache.conf')
-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> |