http – How to change Apache Document Root Directory in Linux CentOs from /var/www/html/ – Stack Overflow

I was facing apache error that httpd.service was failing

after installing the apache http webserver and accessing the domain am getting the default CentOs test page 123 with this information:

Are you the Administrator?

You should add your website content to the directory /var/www/html/.

To prevent this page from ever being used, follow the instructions in the file /etc/httpd/conf.d/welcome.conf.

My files already were in public_html folder and is still there with the files originally uploaded.

How can I load my website from that public html folder by making it the document root folder because I dont want my site in /var/www/html/?

Read more here: Source link