Create the new directory you need to change and change the host permissions to the apache user chown -R apache:apache /mnt/www
2
Stop the Apache service service httpd stop
3
Modify the Apache configuration file, the default is in /etc/httpd/conf/httpd.conf, find the Document Root and modify it to your new path, as shown in the following image
4
and belowDirectory A new path for you, As shown in the figure below
5
After saving the configuration file, restart the Apache service and your Apache directory changes will take effect.