File: //etc/apache2/conf-enabled/umbler.conf
EnableMMAP off
EnableSendfile on
UserDir disabled root
UserDir disabled "/etc" "/usr" "/var"
ServerName Umbler
GracefulShutdownTimeout 2
<IfModule http2_module>
Protocols h2 h2c http/1.1
</IfModule>
<IfModule unixd_module>
User ubwww
Group ubwww
</IfModule>
DocumentRoot "/home"
<Directory "/home">
Options -Indexes
AllowOverride None
Require all granted
</Directory>
<Directory "/home/*/public">
Options -Indexes
AllowOverride All
</Directory>
<Files ".ht*">
Require all denied
</Files>
ErrorLog /dev/stderr
LogLevel error
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options None
Require all granted
</Directory>
<IfModule mime_module>
TypesConfig /etc/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
</IfModule>
# Deal with user agents that deliberately violate open standards
#
<IfModule setenvif_module>
BrowserMatch "MSIE 10.0;" bad_DNT
</IfModule>
<IfModule headers_module>
RequestHeader unset DNT env=bad_DNT
<If "%{HTTP:X-Proxy-Provider} == 'or'">
Header unset Upgrade
</If>
</IfModule>
<filesMatch "\.(php)$">
FileETag None
<ifModule mod_headers.c>
Header unset ETag
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
</ifModule>
</filesMatch>
<IfModule mod_headers.c>
# 1 DAY
<filesMatch "\.(html)$">
ExpiresDefault A86400
Header set Cache-Control "max-age=86400, must-revalidate"
</filesMatch>
# 2 DAYS
<filesMatch "\.(xml|txt)$">
ExpiresDefault A172800
Header set Cache-Control "max-age=172800, must-revalidate"
</filesMatch>
# 1 WEEK
<filesMatch "\.(jpg|jpeg|png|gif|swf|js|css)$">
ExpiresDefault A604800
Header set Cache-Control "max-age=604800, must-revalidate"
</filesMatch>
# 1 MONTH
<filesMatch "\.(ico|pdf|flv)$">
ExpiresDefault A2419200
Header set Cache-Control "max-age=2419200, must-revalidate"
</filesMatch>
</IfModule>