4th Floor, 4 Tabernacle Street London EC2A 4LU

Certbot WWW and Non-WWW

For Apache To use certbot for both a http://domain and http://www.domain use the following command:   certbot –apache -n -d domain.com -d www.domain.com –agree-tos –email admin@domain.com –redirect –expand   Without specifying both domains, you will get a certificate error for the domain not specified during creation.

Block IPs by country – Apache

Step 1 If you are using debian or ubuntu, install the mod-geoip package. sudo apt-get install libapache2-mod-geoip   Step 2 Enable GeoIPEnable, edit geoip.conf /etc/apache2/mods-enabled/geoip.conf GeoIPEnable On   Step 3 Find Country Code Lookup: https://en.wikipedia.org/wiki/ISO_3166-1 In Apache vhosts file, outside of the </Directory> tags: <Location /> ##ISO 3166 Country Codes ## Block China ## Block Costa […]

SSH Key Conversion to an OpenSSH compatible format

puttygen supports exporting your private key to an OpenSSH compatible format. You can then use OpenSSH tools to recreate the public key. Open PuttyGen Click Load Load your private key Go to Conversions->Export OpenSSH and export your private key Copy your private key to ~/.ssh/id_dsa (or id_rsa). Create the RFC 4716 version of the public […]

Apache – APR-util not found

Apache – APR-util not found Download APR && APR-UTIL from http://apr.apache.org/download.cgi Add the two unpacked directories into SRCLIBS in your apache source directory, make sure they are named apr and apr-util… Compile with ./configure XXX –with-included-apr

Install Google Mod Speed on Ubuntu / Debian

Install Google Mod Speed on Ubuntu / Debian mod_pagespeed is an open-source Apache module that automatically optimizes web pages and resources on them. It does this by rewriting the resources using filters that implement web performance best practices. Webmasters and web developers can use mod_pagespeed to improve the performance of their web pages when serving […]