# AddType TYPE/SUBTYPE EXTENSION
AddType audio/mpeg mp3
AddType audio/mp4 m4a
AddType audio/ogg ogg
AddType audio/ogg oga
AddType audio/webm webma
AddType audio/wav wav
AddType video/mp4 mp4
AddType video/mp4 m4v
AddType video/ogg ogv
AddType video/webm webm
AddType video/webm webmv
AddHandler server-parsed .htm
AddType application/x-httpd-php .html
php_value allow_url_fopen on
AddDefaultCharset ISO-8859-2
# The React admin2 SPA was built against testsite.kptv.ro where the URL path
# is /kptv/admin2/... -- it hardcodes that prefix in the JS bundle. On
# testsite2 the admin2 folder is reachable at /admin2/ (no kptv/), so map
# requests for /kptv/admin2/* back to /admin2/*.
RewriteEngine On
RewriteRule ^kptv/admin2/(.*)$ /admin2/$1 [L]
RewriteRule ^kptv/images/(.*)$ /images/$1 [L]
# Image cache revalidation: when admin2 replaces a news/album image with
# the same filename, browsers shouldn't show the stale heuristic-cached
# copy. "no-cache" forces a conditional GET on every load -- Apache
# returns 304 (cheap) when content is unchanged, 200 with fresh bytes
# when it isn't.
Header set Cache-Control "no-cache, must-revalidate"
# Deny direct HTTP access to PowerShell scripts and the cron helper.
# kptv_inslastfive.ps1 is loaded by the "KPTV inslastfive" scheduled task
# via the local filesystem -- it must never be served to web visitors.
Require all denied
x
Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586