How to change apache root folder



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

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


one more thing
it is better to restart the apache:

sudo service apache2 restart


Another quick way to restart apache is apachectl restart


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


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