How to change apache root folder

runner
apache

#1

By default apache server files from ~/workspace folder. Please advise how to set it up to server files from ~/releases/current folder


How do you save changes in the terminal
#2

sudo vi /etc/apache2/sites-enabled/001-cloud9.conf

edit the following config:
DocumentRoot <the path you want>

this path is exactly the apache docroot path


#3

one more thing
it is better to restart the apache:

sudo service apache2 restart


#4

Another quick way to restart apache is apachectl restart


#5

How do you save changes mate in the Apache root terminal???


#6

Press ESC then type :wq! to save and exit sudo vi