restore working files, compatible to NGINX