我已经将Apacheconfiguration为在所有使用OPTIONS动词的请求上返回200
RewriteCond %{REQUEST_METHOD} OPTIONS RewriteRule ^(.*)$ $1 [R=200,L]
Apache确实返回状态200 OK ,但正文包含错误消息:
HTTP/1.1 200 OK Date: Sun, 22 Mar 2015 16:38:10 GMT Server: Apache/2.4.10 (Win64) PHP/5.6.3 Content-Length: 492 Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Content-Type: text/html; charset=iso-8859-1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>200 OK</title> </head><body> <h1>OK</h1> <p>The server encountered an internal error or misconfiguration and was unable to complete your request.</p> <p>Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.</p> <p>More information about this error may be available in the server error log.</p> </body></html>
为什么这样? configuration不正确?
@Maximus,您必须使用“204-No Content”作为响应代码。
详细信息在这里: https : //stackoverflow.com/a/32146203/2397394
类似于软404 ,这看起来是500软件 。 我会build议检查你的Apacheconfiguration链接中记下的设置,看看是否可能是你的问题。