Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

2 Answers 2

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

share|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

Solution

AddType text/html php 

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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