From 0256aa1bbea3e2040aa6af8a41398683174acd85 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Sat, 29 Nov 2025 00:33:48 -0500 Subject: [PATCH] config --- src/content/software/hosting-a-git-server.mdx | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/content/software/hosting-a-git-server.mdx b/src/content/software/hosting-a-git-server.mdx index a645461..bc875ec 100644 --- a/src/content/software/hosting-a-git-server.mdx +++ b/src/content/software/hosting-a-git-server.mdx @@ -110,7 +110,7 @@ Here's the updated config: ```apacheconf ServerName git.barrettruth.com - Redirect permanent / https://barrettruth.com/git.html + Redirect permanent / https://git.barrettruth.com/ @@ -126,10 +126,18 @@ Here's the updated config: SSLCertificateKeyFile /etc/letsencrypt/live/git.barrettruth.com/privkey.pem Include /etc/letsencrypt/options-ssl-apache.conf - Redirect "/" "https://barrettruth.com/git.html" + DocumentRoot /srv/git + SetEnv GIT_PROJECT_ROOT /srv/git + SetEnv GIT_HTTP_EXPORT_ALL + ScriptAlias / /usr/libexec/git-core/git-http-backend/ - ErrorLog /var/log/httpd/unified.log - CustomLog /var/log/httpd/unified.log combined + + Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch + Require all granted + + + ErrorLog /var/log/httpd/git_error.log + CustomLog /var/log/httpd/git_access.log combined