Fix directory type and stop nginx