Files that I want to serve via browser are located at /root/my_folder
(ubuntu 14.04). I changed a path from /var/www/html
to /root/my_folder
in /etc/apache2/sites-available/000-default.conf
, after that I get forbidden error when I try to access it in browser.
Apache default welcoming page states that:
By default, Ubuntu does not allow access through the web browser to any file apart of those located in /var/www, public_html directories (when enabled) and /usr/share (for web applications). If your site is using a web document root located elsewhere (such as in /srv) you may need to whitelist your document root directory in /etc/apache2/apache2.conf.
How do I whitelist my root directory in /etc/apache2/apache2.conf
, what syntax do I use?