
我想在 Apache httpd 配置中實作如下所示的內容:
<If "%{HTTP_USER_AGENT} !~ /something/">
RemoveEncoding .gz .tgz
AddType application/x-gzip .gz
</If>
但我的理解是這種條件<If>
語法僅適用於 Apache 2.4.x。不幸的是,我暫時堅持使用 Apache 2.2.x。有沒有辦法用 Apache 2.2.x 做到這一點?也許使用BrowserMatch
和環境變數?謝謝!