Roundcube (webmail) under ssl subdomain
Posted: Tue Jul 25, 2017 8:44 am
Hi guys!
Great work on VestaCP - to say first! It's a great little control panel.
I stumbled upon setting Roundcube under a subdomain with ssl. To picture this:
- I have a domain example.com
- the webmail is accessed by http://example.com/webmail
- I would like it to be accessed through https://webmail.example.com
- this should also work for any other domain
I have searched and read a couple of things:
- viewtopic.php?f=12&t=5832&p=36629&hilit ... ain#p36629
- viewtopic.php?f=12&t=8925&p=36627#p36627
But nothing seems to work, I guess these posts are just too old for a recent version of VestaCP.
- I have also tried to setup an nginx reverse proxy to /webmail
But that creates too many redirects issue
The documentation does not explain in detail how the whole vhost/web configuration is setup, and so it is difficult to understand where to go to change stuff. I've read something on the templates, but as said - it didn't seem to work.
My Vesta setup:
- Ubuntu 16.04
- VestaCP 0.9.8
Thanks in advance for an help with this.
Great work on VestaCP - to say first! It's a great little control panel.
I stumbled upon setting Roundcube under a subdomain with ssl. To picture this:
- I have a domain example.com
- the webmail is accessed by http://example.com/webmail
- I would like it to be accessed through https://webmail.example.com
- this should also work for any other domain
I have searched and read a couple of things:
- viewtopic.php?f=12&t=5832&p=36629&hilit ... ain#p36629
- viewtopic.php?f=12&t=8925&p=36627#p36627
But nothing seems to work, I guess these posts are just too old for a recent version of VestaCP.
- I have also tried to setup an nginx reverse proxy to /webmail
Code: Select all
server {
listen 45.55.84.251:80;
server_name webmail.*;
return 301 https://$host/webmail;
}
server {
listen 45.55.84.251:443;
server_name webmail.*;
location / {
proxy_pass http://$host/webmail/;
}
}
The documentation does not explain in detail how the whole vhost/web configuration is setup, and so it is difficult to understand where to go to change stuff. I've read something on the templates, but as said - it didn't seem to work.
My Vesta setup:
- Ubuntu 16.04
- VestaCP 0.9.8
Thanks in advance for an help with this.