We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
WEbhosting server DocumentRoot is var/www instead of /home/user
-
- Posts: 43
- Joined: Tue Apr 18, 2017 7:55 am
WEbhosting server DocumentRoot is var/www instead of /home/user
what is the default vestacp website directory for all webhosting clients on my debian server?
I think i may have made a mistake in setting my default vestacp user home directory. I also have other servers that by default set new website home directory to
/home/clent/web/domain.com/public_html
my vestacp users home directory is as above, however, when i copy files into the above path for new users websites the default apache "it works" page is still being displayed. I am sure that the problem is that apache is continuing to see the default DocumentRoot for all new users domain websites as
/var/www/
I am not sure what is the best way to fix this?
Should i change user home directory or change the apache configuration? (how do i make the changes required?)
Should there be simlink from /var/www to /home/client/web/...?
I think i may have made a mistake in setting my default vestacp user home directory. I also have other servers that by default set new website home directory to
/home/clent/web/domain.com/public_html
my vestacp users home directory is as above, however, when i copy files into the above path for new users websites the default apache "it works" page is still being displayed. I am sure that the problem is that apache is continuing to see the default DocumentRoot for all new users domain websites as
/var/www/
I am not sure what is the best way to fix this?
Should i change user home directory or change the apache configuration? (how do i make the changes required?)
Should there be simlink from /var/www to /home/client/web/...?
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- Os: Debian 8x
- Web: apache + nginx
Re: WEbhosting server DocumentRoot is var/www instead of /home/user
On users tab, select the VestaCP user(s) and REBUILD WEB for the user/s. This should fix this
-
- Posts: 43
- Joined: Tue Apr 18, 2017 7:55 am
Re: WEbhosting server DocumentRoot is var/www instead of /home/user
I am logged in as system administrator, however, after selecting the user in question, I cannot find "REBUILD WEB" for the user/s. Where is this option?mehargags wrote:On users tab, select the VestaCP user(s) and REBUILD WEB for the user/s. This should fix this
can i simply do this from command? I am not 100%sure of what to type but is it something like
do v-rebuild-web-domains $user;
from which directory should i do this in command as the root user?
Finally, i would just like to clarify...
According to /etc/apache2/sites-available/000-default.conf
DocumentRoot /var/www/html
However, according to vestacp, new ftp users home directories are
/home/client/web/foo.com.au
I dont understand why in a default installation they are different? (this must be why my web directory is displaying the default apache "It Works" page even though i have uploaded files...ftp client has uploaded to the wrong web directory)
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- Os: Debian 8x
- Web: apache + nginx
Re: WEbhosting server DocumentRoot is var/www instead of /home/user
You are doing it way too hard then neccessary.
To rebuild web through Web interface
https://prnt.sc/h0huho
To do it over CLI in bash, use the command
To rebuild web through Web interface
https://prnt.sc/h0huho
To do it over CLI in bash, use the command
Code: Select all
cd /usr/local/vesta/bin/
v-rebuild-user
v-rebuild-web-domains
-
- Posts: 43
- Joined: Tue Apr 18, 2017 7:55 am
Re: WEbhosting server DocumentRoot is var/www instead of /home/user
ah ok..thanks i found it now.
ok, so after performing the "build" operation, nothing changes.
Apache is not displaying the default vesta apache page with "Powered by Vesta" at the bottom, rather its displaying the standard default apache index.html page (that does not contain Powered by Vesta).
Its ok, i have finally found the problem...its a dns stuff up on my part. Had a wrong registry A record pointing the domain name to wrong one of my servers (i thought i had already checked this doh!)
ok, so after performing the "build" operation, nothing changes.
Apache is not displaying the default vesta apache page with "Powered by Vesta" at the bottom, rather its displaying the standard default apache index.html page (that does not contain Powered by Vesta).
Its ok, i have finally found the problem...its a dns stuff up on my part. Had a wrong registry A record pointing the domain name to wrong one of my servers (i thought i had already checked this doh!)