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
Post a Comment