Would you like to learn how to enable the HSTS feature on the Apache server? In this tutorial, we are going to show you how to enable on Apache the feature called HTTP Strict Transport Security.
• Ubuntu 20
• Ubuntu 19
• Ubuntu 18
• Apache 2.4.41
In our example, the Apache server is hosting the website WWW.GAMEKING.TIPS
Copyright © 2018-2021 by Techexpert.tips.
All rights reserved. No part of this publication may be reproduced, distributed, or transmitted in any form or by any means without the prior written permission of the publisher.
Equipment list
The following section presents the list of equipment used to create this tutorial.
As an Amazon Associate, I earn from qualifying purchases.
Apache – Related Tutorial:
On this page, we offer quick access to a list of tutorials related to Apache.
Tutorial Apache – Enable HSTS
Install the Apache server.
Enable the required Apache modules.
Edit the Apache configuration file for the website.
On the HTTPS area, add the following lines to this configuration file.
Make sure that you have an HTTPS website configured on the Apache server.
As an example, here is our configuration file.
Restart the Apache service.
In our example, we configured the HSTS feature on the Apache server.
From a remote Linux computer, try to access an HTTPS page.
Here is the command output.
Congratulations! You enabled the HSTS feature on the Apache server.