Refactoring to move out apache and nginx setups