I just use ‘sudo restart’ because in command prompt alert ‘New version require to restart’.After use sudo restart, my website show ‘Welcome to nginx!’. I found my new index.html is /usr/share/nginx/html instead var/www/html. The new location can’t open localhost. I want to redirect it.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.