Define Level3 aarde
Include /www/default/httpd-generic.conf
SSLSessionCache "shmcb:/opt/local/var/run/apache2/ssl_scache(512000)"
SSLSessionCacheTimeout 300
ServerName ${ServerName}
Redirect permanent / https://${ServerName}/
ServerName ${ServerName}
DocumentRoot ${DocumentRoot}
Header set Access-Control-Allow-Origin "*"
Header set Cross-Origin-Resource-Policy "cross-origin"
#-----------
# Clean URLs
#-----------
#LogLevel debug rewrite:trace8
#ErrorLogFormat "%M"
#ErrorLog "/log/apache-clean-urls.log"
LogFormat "%h %l %u %t \"%r\" %>s %b" common
CustomLog /log/com-aarde-access_log common
RewriteEngine On
# Redirect URIs with trailing slashes except root `/` to remove the slash
RewriteCond %{REQUEST_URI} !^/$
RewriteRule ^(.*)/$ /$1 [R=301,L]
# Special case: rewrite root `/` to `/index.html`
RewriteRule ^/?$ /index.html [L]
# Skip rewriting if the requested resource is an existing file or directory
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Skip rewriting if the URI contains a file extension
RewriteCond %{REQUEST_URI} !\.[^/]+$ [NC]
# Skip rewriting for the root URI `/`
RewriteCond %{REQUEST_URI} !^/$
# Rewrite any URI (e.g., /example or /example/) to /example.html
RewriteRule ^(.*?)/?$ /$1.html [L]
#Include /www/default/httpd-ssl.conf
Undefine Level3