Page 1 of 1

Create New Web works in Vesta however it is not showing up in /etc/apache2/sites-enabled

Posted: Sun Oct 22, 2017 5:36 am
by adamjedgar
hi guys,
i am not sure if this is how its meant to be or if i am doing something wrong. I log into vestacp as a client account (not system administrator) and create a new web domain.
Vestacp successfully creates the domain and its listed in the web tab for that user.
However, when i log into command using either that user or the system admin user, i find only the following in /etc/apache2/sites-enabled...

000-default.conf

This is the same for sites available (which i imagine would be correct as sites-available is the default template yes?), but surely this should not be what is recorded for a new domain for said client?

For example, if i created a client called "foo" and,

"foo" logged into the webserver using his account and created a new web domain called "foo.com",

shouldnt foo@server2:/etc/apache2/sites-enabled display "foo.com" instead of "000-default.conf"?

Re: Create New Web works in Vesta however it is not showing up in /etc/apache2/sites-enabled

Posted: Sun Oct 22, 2017 1:12 pm
by mehargags
VestaCP includes all conf files from /home/<vestauser>/conf/web/apacheornginx.conf. It doesn't create or edit default conf file in /etc/apache2orNginx/sites-xx directories. It imports the different conf's for each user and so creates a runtime systemwide conf

So you should head to your user's home directory and then conf dir to edit the specific conf files.