Disable Banner in Apache Server

Loading

The Apache server banner reveals details such as the server version and operating system in HTTP headers and error pages. This information can be leveraged by malicious users to launch targeted attacks. Disabling the banner helps to harden your server and reduce its exposure. Open your Apache configuration fileDepending on your system, edit one of…

Redirect all http page to https with www

Loading

Hello, it is very simple to redirect all HTTP requests to HTTPS with www. I am doing it here from the apache end however, you can do it from your DNS panel also. First, you have to enable the mod_rewrite module in apache. By typing below command you can see which modules are enabled to…

Increase SSH session timeout

Loading

If you facing SSH session disconnecting problem then please follow the below steps: This tutorial increase your ssh session. In my case I will increase it to 1 day. Open the sshd configuration file with any preferable Linux text editor Add the following lines to the end of this file TCPKeepAlive yesClientAliveInterval 60ClientAliveCountMax 1440 This…

Disable password less authentication and set a root pass on MySQL 5.7

Loading

Login to the MySQL using below command use the mysql database Change the password policy to LOW Now again show the password policy Your MySQL password policy has been changed. Now you have to set a root password. To show MySQL current password structure:  Change the root password authentication method to native_password Again show the MySQL current…