logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: disabling http 1.0
Author
mrdj1024



Joined: 03 Apr 2023
Posts: 55
Location: Bridgeton,NJ,USA

PostPosted: Mon 21 Oct '24 8:35    Post subject: disabling http 1.0 Reply with quote

hello! i only want my website(.htaccess) to only allow http 1.1 and 2.0,here is whats in my htaccess file
Code:
RewriteEngine on
RewriteCond %{THE_REQUEST} !HTTP/1.1$
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule (.*) https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Require all granted
Options +Indexes +Includes +FollowSymLinks -MultiViews +ExecCGI
RewriteCond %{THE_REQUEST} !^(POST|GET|HEAD)
RewriteRule .* - [F]
EnableSendfile On

and in my ssl conf file i have
Code:
Protocols h2 h2c http/1.1

how can i properly disable http 1.0?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7374
Location: Germany, Next to Hamburg

PostPosted: Mon 21 Oct '24 12:03    Post subject: Reply with quote

You can not disable it. You can only disallow connections via that version.

Code:

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


Reply to topic   Topic: disabling http 1.0 View previous topic :: View next topic
Post new topic   Forum Index -> Apache