How to put a folder as DocumentRoot on Apache in Ubuntu? -


i trying change documentroot on apache in ubuntu. want main folder directory path /var/something instead of /var/www.

i tried going directory /etc/apache2/sites-available , modifying property documentroot file 000-default.conf documentroot /var/www documentroot /var/something nothing changed. still see file have default directory /var/www.

i tried doing same 000-default.conf file on directory /etc/apache2/sites-enabled , modifying both @ same time result same.

am modifying wrong file or wrong property?

thanks in advance!

finally, found solution question on file apache2.conf in /etc/apache2 directory.

i had add line (it not appear on file):

documentroot /var/something 

after had restart apache:

/etc/init.d/apache2 restart 

and when try access localhost:80 shows me file default on folder.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -