Apache httpd hardening
Introduction
Apache is one of the most widely-used and popular web servers. It is also one of the most secure web servers available. In this article, I will explain some tips and tricks that will secure your Apache server.
This is a generic ‘quick n dirty’ hardening profile.
Hide version:
1 2 |
ServerSignature Off ServerTokens Prod |
Turn Off Server-Side Includes …Read More
htaccess https simple redirect
How to redirect HTTP traffic to HTTPS using an .htaccess file
The below code when added to an .htaccess file will automatically redirect any traffic destined for http: to https:
1 2 3 4 5 |
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L] </IfModule> |
This is generic code, no domain or page or subfolder needed in the htaccess code.
Common HTTP Error codes and fixes
Here’s a list with the most common HTTP error codes and solutions for each one.
Error 500: Internal Server Error
Cause 1: Syntax error in .htaccess
Cause 2: Invalid files/directories permissions
Other causes
Errors 502: Bad Gateway & 504: Gateway Timeout
Error 503: Service Unavailable
Error 508: Resource Limit Is Reached
Error 500: Internal Server Error
Error 500
Cause 1: …Read More
Installing Virtualmin
What is Virtualmin?
Virtualmin is a powerful and flexible web hosting control panel for Linux and BSD systems. Available in an Open Source community-supported version, and a more feature-filled version with premium support, Virtualmin is the cost-effective and comprehensive solution to virtual web hosting management.
Requirements
Any of the below OSes and architectures:
Rsync: Copy files from and to your server
Rsync is a fast, versatile, remote (and local) file-copying tool.
The rsync command is a very handy and straightforward tool if you want to copy files/folders between your machine and a remote one.
Let’s see some use cases:
Copying local files/folders to a remote computer
Let’s say we have a folder named foo and …Read More
Setting up Linux Containers (LXC)
What are LXCs?
Containers are a lightweight virtualization technology. They are more akin to an enhanced chroot than to full virtualization like Qemu or VMware, both because they do not emulate hardware and because containers share the same operating system as the host.
Installing lxc
First of all, you have to install lxc …Read More
Installing docker with Ubuntu 16.04 LTS, Mint 17 and CentOS 7
Installing docker with Ubuntu 16.04 LTS, Mint 17 and CentOS 7
A brief introduction to virtualization
Today we will learn installing docker with Ubuntu, mint and CentOS 7 Linux, Before the evolution of the concept of virtualization, to run one application one dedicated server was required, if you wanted to run 20 …Read More
Maintaining a clean Ubuntu system
How to maintain a “clean” Ubuntu
Ubuntu is (unfortunately) the most popular GNU/Linux distribution (I still prefer Fedora), as it has been the easiest to use for many years now, making it an obvious choice for every newcomer. As most new users don’t know if and how they are supposed to …Read More
Things to do after installing Ubuntu 16.04 LTS
Things to do after installing Ubuntu 16.04 LTS
To have a fully functional and smoothly running Ubuntu 16.04 Desktop users need to have some services application running before they start working with this fresh flavor of Ubuntu, although it depends upon nature of services for which system will be utilized, we …Read More
Considerations When Creating a Secure Cloud Environment
Considerations When Creating a Secure Cloud Environment
There is a definite change in the cloud security world. Organizations are deploying more cloud platforms to support an ever-growing user base. Still, the big question revolves around security – and how to protect critical data points.
Let’s start here – over the past few …Read More
What is Openstack? A Quick OpenStack Tutorial
What is Openstack? A Quick OpenStack Tutorial
OpenStack – History and Introduction
OpenStack is a cloud operating system that controls large pools of compute, storage, and networking resources throughout a data center. All of the above components are managed through a dashboard which gives administrators control while empowering their users to provision …Read More
Protecting Apache Server From Denial-of-Service Attacks
Protecting Apache Server From Denial-of-Service Attacks
Denial-of-Service (DoS) attack is an attempt to make a machine or network resource unavailable to its intended users, such as to temporarily or indefinitely interrupt or suspend services of a host connected to the Internet. A distributed denial-of-service (DDoS) is where the attack source is …Read More