Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

125
Visualizações
IOS problem with apache and range request

I have the following problem. When i add "RequestHeader unset Range" to my .htaccess I can view and open .pdf files on my website. But if I do so IOS devices can no longer access videos on my website, the video wont play. If I remove "RequestHeader unset Range" the videos work again but the pdf files do not. Unfortunatelly my hoster changed something. Before everything was running fine. Any idea how to fix this?

I tried the following:

<FilesMatch "\.(PDF|pdf)$">
    RequestHeader unset Range
</FilesMatch>

But it does not work when i add the FilesMatch rule.

My request looks like this:

"GET": {
    "scheme": "https",
    "host": "domain.de",
    "filename": "/de/user/recipe_pdf/2",
}

"Status": "416Requested Range Not Satisfiable",
"Version": "HTTP/2",
"Übertragen": "372 B (0 B Größe)",
"Referrer Policy": "strict-origin-when-cross-origin"

{
"Antwortkopfzeilen (372 B)": {
    "headers": [
        {
            "name": "accept-ranges",
            "value": "bytes"
        },
        {
            "name": "cache-control",
            "value": "max-age=0, must-revalidate, private"
        },
        {
            "name": "content-disposition",
            "value": "inline; filename=\"recipes.pdf\""
        },
        {
            "name": "content-length",
            "value": "0"
        },
        {
            "name": "content-range",
            "value": "bytes */972493"
        },
        {
            "name": "content-type",
            "value": "application/pdf"
        },  
        {
            "name": "server",
            "value": "nginx"
        }
    ]
}

}

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

The solution is:

<If "%{REQUEST_URI} =~ m#^.*/recipe_pdf/.*#">
    RequestHeader unset Range
</If>
over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda