mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
apache: Cleanup domain configuration
- Don't set log level explicitly. Fallback to value set in global Apache configuration. - Don't set directory options already set in global configuration. - Remove /cgi-bin/. Only ikiwiki uses cgi and it is served from a different path than /usr/lib/cgi-bin. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
f9a57e4293
commit
511f5c09c0
@ -4,24 +4,10 @@
|
||||
ServerAdmin webmaster@localhost
|
||||
ServerName $domain
|
||||
DocumentRoot /var/www/html
|
||||
<Directory />
|
||||
Options FollowSymLinks
|
||||
AllowOverride None
|
||||
</Directory>
|
||||
<Directory /var/www/html>
|
||||
Options Indexes FollowSymLinks MultiViews
|
||||
AllowOverride None
|
||||
</Directory>
|
||||
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
|
||||
<Directory "/usr/lib/cgi-bin">
|
||||
AllowOverride None
|
||||
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
|
||||
</Directory>
|
||||
|
||||
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||
# Possible values include: debug, info, notice, warn, error, crit, alert, emerg.
|
||||
LogLevel warn
|
||||
CustomLog ${APACHE_LOG_DIR}/ssl_access.log combined
|
||||
# GnuTLS Switch: Enable/Disable SSL/TLS for this virtual host.
|
||||
|
||||
GnuTLSEnable On
|
||||
# Automatically obtained certificates from Let's Encrypt
|
||||
GnuTLSCertificateFile /etc/letsencrypt/live/$domain/fullchain.pem
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user