Comments on: How to Change Default Apache ‘DocumentRoot’ Directory in Linux https://www.tecmint.com/change-root-directory-of-apache-web-server/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Sun, 08 May 2022 15:17:36 +0000 hourly 1 By: Adam Ng'uni https://www.tecmint.com/change-root-directory-of-apache-web-server/comment-page-1/#comment-1788367 Sun, 08 May 2022 15:17:36 +0000 http://www.tecmint.com/?p=20540#comment-1788367 Hi,

I have a question. I do not want to change the default setting in httpd.conf of DocumentRoot “/var/www/html” but I also want web files to be in DocumentRoot “/home/www/html”

How do I do that?

]]>
By: Tb. Progi https://www.tecmint.com/change-root-directory-of-apache-web-server/comment-page-1/#comment-1102878 Tue, 19 Feb 2019 00:06:20 +0000 http://www.tecmint.com/?p=20540#comment-1102878 If you install ispconfig make site server name (hosname -f) with ispconfig.

Delete 000-default.conf

Create symlink.

# ln -s  /etc/apache2/sites-available/server100.sytes.net.vhost /etc/apache2/sites-enabled/000-default.conf

Restart apache.

# service apache2 restart
]]>
By: Yasser Chacon https://www.tecmint.com/change-root-directory-of-apache-web-server/comment-page-1/#comment-981065 Mon, 09 Apr 2018 15:06:24 +0000 http://www.tecmint.com/?p=20540#comment-981065 Hello,

I did that and now I’m receiving Forbidden. error 403. I’m using Ubuntu 16 LTS.

]]>
By: Ravi Saive https://www.tecmint.com/change-root-directory-of-apache-web-server/comment-page-1/#comment-823796 Mon, 03 Oct 2016 05:48:55 +0000 http://www.tecmint.com/?p=20540#comment-823796 In reply to Saurabh Lambe.

@Saurabh,

Which Linux distributions are you using? Ubuntu or CentOS?

]]>
By: Saurabh Lambe https://www.tecmint.com/change-root-directory-of-apache-web-server/comment-page-1/#comment-822710 Sat, 01 Oct 2016 10:49:17 +0000 http://www.tecmint.com/?p=20540#comment-822710 Did everything as suggested. Still the html files saved in my new folder do not load in the web browser.

]]>