Page 1 of 1

How to setup VestaCP correctly to access it from cp.example.com, not example.com:8083

Posted: Wed Jul 25, 2018 3:53 pm
by s3tupw1zard
How can I setup this?

Ive tried several guides.
viewtopic.php?t=12853 works but the websites ive setup arent accessible.
And i want to access the admin panel only through https.

Can anyone help me?

Thanks

Re: How to setup VestaCP correctly to access it from cp.example.com, not example.com:8083

Posted: Wed Jul 25, 2018 4:58 pm
by grayfolk
Any reason for this? What the problem with different port?

Re: How to setup VestaCP correctly to access it from cp.example.com, not example.com:8083

Posted: Wed Jul 25, 2018 5:03 pm
by s3tupw1zard
I just want to access the admin panel through cp.example.com without port. And the whole thing should be ssl secured.
And i want that the other websites are reachable too, not that blog.example.com shows the panel too

Re: How to setup VestaCP correctly to access it from cp.example.com, not example.com:8083

Posted: Thu Jul 26, 2018 11:48 pm
by grayfolk
If you use nginx you can create/update template for site with followed code:

Code: Select all

location / {
        proxy_pass      https://your.panel.addr:2083;
    }

Re: How to setup VestaCP correctly to access it from cp.example.com, not example.com:8083

Posted: Tue Sep 04, 2018 9:09 am
by hanif81
i change that too but only text showup .. js not loading for vestacp

OK just change line 9 from

Code: Select all

root           /home/admin/web/yourdomain/public_html;
to

Code: Select all

root           /usr/local/vesta/web;