admin has written 153 articles

Static files served without recording hit to access_log

Overview Static files (index.html) can be served without logging a request in access_log. Cause This occurs when mod_pagespeed is enabled. Pagespeed intercepts the request higher in Apache’s processing axis before mod_log_config and serves the static file from its optimized cache if present. This does not affect files which have a Pragma: no-cache header such as…

Working with HTTP rate-limiting

Overview All HTTP servers enforce a collection of HTTP rate-limiting to reduce abuse and achieve a high reliability. This system is built on a fork of mod_evasive, which implements an interval-based bean counter, in other words it begins counting URI requests for a given duration once the first request is received. There are two classes of…

Running Discourse

Discourse is a popular forum software written in Ruby. Because Discourse relies on Docker, which is incompatible with the platform, installation must be carried out manually. A Pro package is recommended to run Discourse as each worker is approximately 200 MB. Getting Started Installation is done within the Terminal. Checkout the Discourse repository from GitHub…

Sharing .htaccess rules

Overview An .htaccess file may be shared across multiple domains and subdomains by being located in a common parent directory. Locating an .htaccess under /var/www will allow any domain or subdomain located under /var/www to inherit these rules; effectively any domain or subdomain that is not managed by a secondary user within that user’s respective…

Scripting with Beacon

Beacon is a scripting companion to apnscp that provides a simple interface to interacting with more than 2,000 commands exposed in apnscp. If apnscp can do it so can you, minus a pretty interface of course! Beacon may also be downloaded from our github repo. Getting Started Beacon requires an API key for authentication. Visit Dev >…

Forwarding a web site elsewhere

Overview A forwarded website can be accomplished by first creating a subdomain or addon domain in the control panel, then using an .htaccess in document root to redirect all traffic to the new web site using mod_rewrite. Important terminology Forwarded domain: domain that will redirect to the target domain Target domain: domain that is the final destination…

Connection to mail over SSL fails

Overview IMAP, POP3, and SSL that connect over SSL either via STARTTLS on port 143/110/587 or 993/995/465 respectively fail with a certificate warning without any symptoms prior to October 25, 2016. Symptoms include the following dialog from Thunderbird: Cause With the proliferation of free SSL certificates via Let’s Encrypt, vendors have begun to tighten requirements on…