fix the issue of httpd no longer working when its root directory is replaced