Posts Tagged ‘apache’

Fixing Apache Installation after Upgrade to Ubuntu 14.4

October 31, 2014

After an LTS upgrade, my Apache was no longer working. The new version of Apache came with two significant changes to the configuration file.

Virtual Hosts The filter for including hosts from /etc/apache2/sites-enabled had been updated to only match paths ending in the extension .conf. More about it here (see post by augustin from Sep 17).

Permissions outside of normal Document Root The default permissions had become more restrictive disallowing access outside the normal document root. More about it here (see post by Irve from May 22).


Seemingly random 403 errors on Apache

May 21, 2009

At some point I realized that apache was giving seemingly random “403 Forbidden” errors. This when under high load and yet, not really high at all. I would be able to trigger it by reloading some page a few times quickly in a row or loading a page with a lot of images.

The problem was mod_evasive, a module designed to protect against DOS attacks. The above usage pattern was being categorised as an attack and rejected. This page explains the details and this page explains how to deal with it in Ubuntu.

I did have to loosen up some settings, namely:

  • DOSPageCount 10 (the number of pageviews allowed within DOSPageInterval secs)
  • DOSSiteCount 10000 (the number of object requests allowed within DOSSiteInterval secs, that is images, stylesheets, javascrip files ...)

Configuring subdomains

May 11, 2009

This article explains how to set up subdomains. Very easy, at least on Apache