fix apache and deploy config