[ALX] 2018-08-09
Apache2 Configuration
======
ServerName host.domain.tld
Redirect permanent / https://host.domain.tld/
ServerName host.domain.tld
DocumentRoot /srv/www/htdocs/domain.tld/host
Options -Indexes
DirectoryIndex index.html
Require all granted
ScriptAlias /repos/ /srv/www/htdocs/domain.tld/host/repos/
Options +ExecCGI
SetHandler cgi-script
RewriteEngine On
RewriteRule !^fossil/ / [R=301,L]
Require all granted
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/host.domain.tld/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/host.domain.tld/privkey.pem
======
CGI File /srv/www/htdocs/domain.tld/host/repos/fossil
======
#!/usr/local/bin/fossil
directory: /srv/fossil
======
HTML file /srv/www/htdocs/domain.tld/host/index.html
======
Fossil Repositories
Fossil Repositories
Test Repository 1
Test Repository 2
Test Repository 3
======
Your repositories are here
======
/srv/fossil/test1.fossil
/srv/fossil/test2.fossil
/srv/fossil/test3.fossil
======
<>Application | Webserver | Dev. Tools