This is very very basic topic but still we need this while configure our new Ubuntu system. Our Public profile gets encrypted thats why its more secure to www/html . I always prefer to use Public folder to setup local development website.
We need to follow these steps below to set this.
sudo gedit /etc/apache2/sites-available/000-default.conf
and change these lines
DocumentRoot /var/www/html to DocumentRoot /home/user/Public
Here set "user" accordingly.
Then search for
<Directory /var/www/html>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
and change to
<Directory /home/user/Public>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
and save it.
Now restart apache server to get the changes.
sudo service apache2 restart
-- Thats it.
No comments:
Post a Comment