Maybe we should remove that middleware and replicate it's effect in Apache so we can override it.