config
This commit is contained in:
parent
54e8fc4e92
commit
0256aa1bbe
1 changed files with 12 additions and 4 deletions
|
|
@ -110,7 +110,7 @@ Here's the updated config:
|
||||||
```apacheconf
|
```apacheconf
|
||||||
<VirtualHost *:80>
|
<VirtualHost *:80>
|
||||||
ServerName git.barrettruth.com
|
ServerName git.barrettruth.com
|
||||||
Redirect permanent / https://barrettruth.com/git.html
|
Redirect permanent / https://git.barrettruth.com/
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
||||||
<VirtualHost *:80>
|
<VirtualHost *:80>
|
||||||
|
|
@ -126,10 +126,18 @@ Here's the updated config:
|
||||||
SSLCertificateKeyFile /etc/letsencrypt/live/git.barrettruth.com/privkey.pem
|
SSLCertificateKeyFile /etc/letsencrypt/live/git.barrettruth.com/privkey.pem
|
||||||
Include /etc/letsencrypt/options-ssl-apache.conf
|
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
|
<Directory "/usr/libexec/git-core">
|
||||||
CustomLog /var/log/httpd/unified.log combined
|
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
|
||||||
|
Require all granted
|
||||||
|
</Directory>
|
||||||
|
|
||||||
|
ErrorLog /var/log/httpd/git_error.log
|
||||||
|
CustomLog /var/log/httpd/git_access.log combined
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
||||||
<VirtualHost *:443>
|
<VirtualHost *:443>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue