Added settings for targets and seperated apache and nginx functions