Page 1 of 1
How to change directory of server ip to /var/www/html ?
Posted: Fri Oct 18, 2019 8:01 pm
by daniyal.javani
Currently when I enter server ip in browser, content of the default website will show up (/home/admin/web/****.com/public_html/). How can I change it to /var/www/html ?
Re: How to change directory of server ip to /var/www/html ?
Posted: Tue Oct 22, 2019 4:07 pm
by grayfolk
daniyal.javani wrote: ↑Fri Oct 18, 2019 8:01 pm
Currently when I enter server ip in browser, content of the default website will show up (/home/admin/web/****.com/public_html/). How can I change it to /var/www/html ?
What the point? Any reason of this?
Re: How to change directory of server ip to /var/www/html ?
Posted: Wed Oct 23, 2019 9:47 am
by skurudo
daniyal.javani wrote: ↑Fri Oct 18, 2019 8:01 pm
Currently when I enter server ip in browser, content of the default website will show up (/home/admin/web/****.com/public_html/). How can I change it to /var/www/html ?
Well... in linux you can do almost anything, you can make changes in config files or VestaCP templates and you will use different directories.
But you need to know, may be you will get some adventures on your server and you need to prepare for this.