I am trying to login to Superuser with OpenID, and it generates a request like this:

telnet phor.net 80
GET /professional HTTP/1.0
Accept:text/html,application/xhtml+xml,application/xrds+xml` 

And my Apache server gives the error:

406 Not Acceptable: 
An appropriate representation of the requested resource /professional 
could not be found on this server. Available variants: 
professional.php, type  application/x-httpd-php

If a normal web browser hits the site, content negotiation correctly selects professional.php as the resource for this request. Is it possible to serve this same file to superuser?

link|improve this question
feedback

2 Answers

Did you try adding application/x-httpd-php to the accept portion of your request?

link|improve this answer
Yes, that fixes the problem. But I cannot control the client's (Superuser.com) request, I can only control my server's response. – Full Decent Sep 13 '10 at 22:21
feedback

Solution

AddType text/html php 

In my /etc/apache2/sites-enabled/*

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.