Modify domain directory.