fix error template and incorrect web config dir
fix error template and incorrect web config dir