Questions tagged [content-negotiation]

8 questions
6
votes
3 answers

Configuring Apache content negotiation for languages using MultiViews

I'm attempting to get the MultiViews option working in Apache to vary the content returned to the browser based on the Accept-Language provided in requests. I've got the following configuration: Alias /multiviewstest "C:/MultiViews Test"
Simon Lieschke
  • 187
  • 3
  • 9
3
votes
0 answers

Getting Authentication Negotiate instead of NTLM while consuming SOAP WCF Service in Net.Core 2.1

I was trying to connect to a WCF SOAP service using NTLM Authentication Scheme, I succeeded at it when using .Net Framework 4.x but when I try to consume the same service in .NET Core 2.1 it fails (because the Authentication scheme is sent as…
dennisbot
  • 131
  • 4
2
votes
1 answer

Apache 2.4.7 ignores response header Content-Encoding: identity, instead respects Content-Encoding: none, set by PHP

I just realized my apparent problem (and the "solution" Content-Encoding: none from the StackOverflow question I referred to in my initial question, below) may very well have simply been due to a misunderstanding how things are actually working.…
1
vote
0 answers

Apache: Add header to one specific url?

I just configured some Content negotiation for my root url based on this Apache Document and it seems to work great. As my site also set a language cookie, I tested the following in my virtualhost (also mentionned in the doc) SetEnvIf Cookie…
Julien
  • 410
  • 3
  • 11
0
votes
0 answers

Make Content Negotiation work if language extension is on left side of MIME extension

The codebase I have is full of files like "foo.en.html", that should be served when "foo.html" is accessed. I know the files are supposed to be "foo.html.en", but I want to avoid a mass rename if possible. To clarify, we have files on the server…
d8uv
  • 101
  • 1
  • 7
0
votes
1 answer

Make MultiViews work even if the requested file does exist

From the Apache 2 docs: The effect of MultiViews is as follows: if the server receives a request for /some/dir/foo, if /some/dir has MultiViews enabled, and /some/dir/foo does not exist, then the server reads the directory looking for files named…
Adam Ernst
  • 177
  • 1
  • 6
0
votes
1 answer

Apache Content-Type encoding changing from UTF-8 to iso-88591 from directory to directory

I have a site running on Apache 2.2.8 (Plesk 9.5.4) For this site there is a strange behaivor the root directory only has html and it is served with the following header with is great. http://globalmit.com/ Response Headers Date Wed, 04 May 2011…
Sebas
  • 35
  • 3
  • 7
-1
votes
2 answers

OpenID client is failing due to content negotiation on Apache representing OpenID server

This is a question about configuring Apache and accept headers. I am trying to login to Superuser with OpenID, and it generates a request like this: telnet phor.net 80 GET /professional…
William Entriken
  • 543
  • 5
  • 12