[ALX] 2018-08-09
Apache2 Configuration
======
ServerName www.example.org
Redirect permanent / https://www.example.org/
ServerName www.example.org
DocumentRoot /srv/www/htdocs/example.org/www
Options -Indexes
DirectoryIndex index.html
RewriteEngine On
RewriteRule ^fossil/(.*) /fossil/$1 [L]
Require all granted
ScriptAlias /repos/ /srv/www/htdocs/example.org/www/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/www.example.org/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/www.example.org/privkey.pem
======
CGI File /srv/www/htdocs/example.org/www/repos/fossil
======
#!/usr/local/bin/fossil
directory: /srv/fossil
======
HTML file /srv/www/htdocs/example.org/www/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