Prepare router for apache