본문 바로가기
컴퓨터

[Ubuntu] Changing Apache Document Root in Ubuntu

by Luyin 2013. 8. 30.

1. Open /etc/apache2/sites-available/default

sudo gedit /etc/apache2/sites-available/default

2. Change as follows

From,

DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>

To,

DocumentRoot /home/tapan/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /home/tapan/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>