diff --git a/salt/profile/countdown/files/apache-vhost.conf b/salt/profile/countdown/files/apache-vhost.conf index 9348244..d49b87f 100644 --- a/salt/profile/countdown/files/apache-vhost.conf +++ b/salt/profile/countdown/files/apache-vhost.conf @@ -16,14 +16,17 @@ Options Multiviews FollowSymLinks IncludesNoExec DirectoryIndex medium + + + # Use language detection only if "whatever.png" gets requested, but not if "whatever.xy.png" gets requested. + # This ensures that "whatever.xy.png" always gets delivered, even if it doesn't match the browser's Accept-Language header. + LanguagePriority en - #ForceLanguagePriority Fallback - #ForceLanguagePriority Prefer {% for lang in pillar['profile']['countdown']['languages']|sort %} AddLanguage {{lang}} .{{lang}}.png {%- endfor %} - + RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f