aboutsummaryrefslogtreecommitdiffstats
path: root/posts/git_server_centos.md
diff options
context:
space:
mode:
Diffstat (limited to 'posts/git_server_centos.md')
-rw-r--r--posts/git_server_centos.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/posts/git_server_centos.md b/posts/git_server_centos.md
index 6538c65..ca3703c 100644
--- a/posts/git_server_centos.md
+++ b/posts/git_server_centos.md
@@ -138,6 +138,14 @@ Now restart Apache:
Now you can browse to `https://HOST/cgit` assuming you set up your HTTP server
with TLS.
+If you want to run cgit on its own (sub)domain, you can use the following
+configuration directives in the Apache virtual host, don't forget to update
+the `clone-url` as well:
+
+ DocumentRoot /usr/share/cgit
+ Alias /cgit-data /usr/share/cgit
+ ScriptAlias / /var/www/cgi-bin/cgit/
+
If you are playing with the configuration options, you may need to remove the
cache as cgit will cache the output it sends to the browser: