I am using a virtual hosting to host my php site on apache. For example I want to set http://www.example.com/content/ only this specific directory force to response HTTP/1.0 because I have a application need the content-length in the response header. I've tried to add a .htaccess file in the "content" directory but it seems not work. There are just two lines in the file:
SetEnv downgrade-1.0 1
SetEnv force-response-1.0 1
Moreover, is there any method to check the variable have changed? I've used phpinfo() to check but it said that still using HTTP/1.1. What's wrong with my .htaccess file?
Expected result is whatever HTTP/1.0 or 1.1 request sent to server, the server will force to response HTTP/1.0 with the Content-Length in the HTTP header.
Thank you.
AllowOverrideenabled for this location?Deny From Allin the .htaccess, it works, all files in that directory return Error 403 Forbidden. It should be enabled.phpinfoin that directory it saidSERVER_PROTOCOL HTTP/1.1. Moreoever, I've checked the http header response from server, theContent-Lengthis still missing, it still using chunked transfer encoding.