Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

mail and vestacp accessible from domain

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
lekr32
Posts: 15
Joined: Sun Feb 09, 2014 1:52 pm

mail and vestacp accessible from domain
  • Quote

Post by lekr32 » Tue Mar 18, 2014 10:52 am

hello, how to change, i mean - vestacp control panel accessible only from a domain eg. abc.com:8083, but from every each other from the same server and ip, will be hidden,

the same question for a roundcube? i want make something like panel will be on cp.xyz.com:8083 and mail(roundcube) mail.xyz.com, and nothing more :)
thanks
Top

lekr32
Posts: 15
Joined: Sun Feb 09, 2014 1:52 pm

Re: mail and vestacp accessible from domain
  • Quote

Post by lekr32 » Thu Mar 20, 2014 9:37 pm

nobody knows the solving method?
;'(
Top

skid
VestaCP Team
Posts: 1476
Joined: Wed Apr 06, 2011 11:12 pm

Re: mail and vestacp accessible from domain
  • Quote

Post by skid » Thu Mar 20, 2014 10:57 pm

Everything could be configured manually...
Vesta is running on a separate nginx instance. Configuration is here /usr/local/vesta/nginx/conf/nginx.conf
If you want to limit ip address replace
listen 8083;
with
listen xxx.yyy.zzzz:443;
You can also forcibly redirect users to specific domain name by adding following

Code: Select all

if ($host != 'example.com' ) {
    rewrite  ^/(.*)$  http://example.com:8083/$1  permanent;
}
Same applies for Roundcube and phpMyadmin. Depending on your os (Debian/Ubuntu RHEL/CentOS) you can modify apache configuration to make redirection.

If you want to change dynamic links for PMA and Roundcube you can add following to the /usr/local/vesta/conf/vesta.conf

Code: Select all

DB_PMA_URL='https://3rd-party.host/pma/'
DB_PGA_URL=''https://3rd-party.host/pga/'
MAIL_URL=''https://3rd-party.host/webmail/'
Top

lekr32
Posts: 15
Joined: Sun Feb 09, 2014 1:52 pm

Re: mail and vestacp accessible from domain
  • Quote

Post by lekr32 » Fri Mar 21, 2014 10:26 pm

thanks you a lot!
you are still the best :)
i'll try it!
Top


Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password