I've been looking through mod_negotiation.c to resolve a problem
I have with PHP and Google.
The issue is that Google sends
Accept: text/html,text/plain
And Apache, configured with PHP as a module, is unable to negotiate a
satisfactory mime type since PHP is registered under
application/x-httpd-php rather than the text/html it typically serves,
then serves a 406 to google.
Now here's where I start guessing.
Currently mod_negotiation.c uses a pseudo_html flag to treat two mime
types (text/x-server-parsed-html[3] as if they were text/html.
Theoretically, if I bash PHP's signature into there, it should work,
right?
(I say theoretically, because I've done it, and it didn't work. Or at
least I'm pretty sure I've done it - the .deb source is tricky.)
-Steve