How to Disable HTTP 1.0 Protocol in Apache

http

HTTP 1.0 has security weakness related to session hijacking. Is there a way to disable it by using the mod_rewrite module?

Best Answer

  1. Ensure to load mod_rewrite module in httpd.conf file
  2. Enable RewriteEngine directive as following and add Rewrite condition to allow only HTTP 1.1

    RewriteEngine On
    
    RewriteCond %{THE_REQUEST} !HTTP/1.1$
    
    RewriteRule .* - [F]