Apache error 404 after upgraded to MacOS Sierra

I’ve upgraded my Mac and the Apache stopped work fine, after to research I discovered these commands:

sudo mv httpd.conf httpd.conf.sierra
sudo mv httpd.conf~previous httpd.conf
sudo apachectl restart

Now, everything works good.