- Step - 1: Create a directory. $ mkdir /home/masud/www/
- Step - 2: Open apache2 configuration file. ...
- Step - 3: Open default virtual host configuration file from path. ...
- Step - 4: Finally restart apache.
People also ask
How to change document root in Apache Ubuntu?
How do I change the document root?
What is the DocumentRoot setting in Apache?
How to change Apache configuration file in Ubuntu?
Aug 27, 2013 · To change Apache's root directory, run: cd /etc/apache2/sites-available · Then open the 000-default.conf file using the command: nano 000-default ...
Apr 29, 2022 · Step 1 — Copying Files to the New Location · Step 2 — Updating the Configuration Files · Step 3 — Restarting Apache.
May 5, 2011 · To change Apache's root directory, run: cd /etc/apache2/sites-available. Then open the 000-default.conf file using the command: nano 000-default ...
May 6, 2021 · I'm using Apache 2.4.41 on Ubuntu 20.04. With the following configuration, I can successfully view the default Ubuntu Apache page at /var/www/ ...
Jul 11, 2018 · Step 1 — Copying Files to the New Location. On a fresh installation of Apache, the document root is located at /var/www/html . By following the ...
May 10, 2022 · step 1 :To change Apache's root directory, run: cd /etc/apache2/sites-available. step 2 :Then open the 000-default.conf file using the command: ...
Oct 28, 2015 · I knew how to do it on Apache 2.2, however, how do I change the document root on Apache 2.4? I run Debian 8.20 on a Virtualbox VM as my apache ...
Aug 25, 2010 · 1. Go to the terminal and type: "sudo gedit /etc/apache2/httpd.conf" (without the quotes) and hit enter. The httpd.conf file will be blank. Type ...