Linux System Administration 28
How To Setup SSH Key Authentication
SSH key authentication can be used for password-less login between 2 servers. This is also useful for adding a key to accounts like git or gitlab for version management. Source Server SSH Key Configuration Generate a RSA key for this system by typing the following ssh-keygen -t rsa The key generated will ask for a […]
Install mod_deflate on Apache
Mod_deflate is an apache module. Prior to having mod_deflate it was mod_gzip. Post apache 2.0 mod_deflate is used, it provides a slightly better compression than mod_gzip. It allows the size of certain file types to be compressed which in-turn allows clients to be able to download these files faster. This will cause the site itself […]
FFMpeg Install On CentOS 7
FFmpeg is a video editing software that can be used to convert audio and video streams in linux. Compiling ffmpeg from source can be quite complex, so there are a couple alternatives, either installing from yum or a static build already created. If you are looking for a more recent release than you should follow […]
Block Countries With Nginx and GeoIP
You can use nginx to either allow or deny certain countries from accessing your site using the GeoIP database which maps IP addresses to the origin country. Nginx GeoIP Requirements Nginx Installation – Nginx must already be installed on your server if it is not yet. Please see How to Install Nginx Nginx must also be […]
Nginx Directory Protection
There are a few different ways to protect directories with Nginx. Password protection is typically to keep certain users out or only let certain users in. This is useful in protecting certain content on websites you do not want everyone to be able to access. This guide assumes you already have a running Nginx installation, […]
Blocking Bad UserAgents with ModSecurity and Fail2ban
Many bots crawl websites that do nothing to generate positive traffic for the site. They just use up available resources and bandwidth of the server. You can reduce this drastically by implementing blocking using ModSecurity to detect the bad agents and then fail2ban to block them in iptables for a period of time. This guide […]
mod_fastcgi Installation on Apache 2.2
What is mod_fastcgi? mod_fastcgi is an Apache module for interfacing with CGI programs allowing a server to handle more requests at one time. It does this by keeping an instance of php running in the background. When apache receives the request it forwards it to FasctCGI. It can increase performance and reduce memory useage over […]
Most Commented